binance.py | python3 binance API wrapper | REST library

 by   Th0rgal Python Version: 1.8.0 License: MIT

kandi X-RAY | binance.py Summary

kandi X-RAY | binance.py Summary

binance.py is a Python library typically used in Web Services, REST applications. binance.py has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

To install the library, you can just run the following command:.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              binance.py has a low active ecosystem.
              It has 48 star(s) with 10 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 8 have been closed. On average issues are closed in 25 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of binance.py is 1.8.0

            kandi-Quality Quality

              binance.py has 0 bugs and 0 code smells.

            kandi-Security Security

              binance.py has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              binance.py code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              binance.py is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              binance.py releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 1268 lines of code, 100 functions and 12 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed binance.py and discovered the below as its top functions. This is intended to give you an instant insight into binance.py implemented functionality, and help decide if they suit your requirements.
            • Create a new order
            • Assert that the given symbol exists
            • Assert that a symbol exists
            • Convert an enum to a value
            • Create an OOB
            • Fetch all orders for a symbol
            • Fetch account trades
            • Cancel an order
            • Cancel OOC order
            • Fetch all Order objects
            • Load the exchange information
            • Fetch order list
            • Fetch all klines from a symbol
            • Fetches an order
            • Fetch aggregate trades
            • Fetch funding wallet
            • Start websocket connection
            • Handle messages from websocket
            • Cancel all open orders for a symbol
            • Fetch account information
            • Handle event
            • Wraps an event
            • Fetch open orders
            • Fetch Open OrderList
            • Fetch the orderbook for a symbol
            Get all kandi verified functions for this library.

            binance.py Key Features

            No Key Features are available at this moment for binance.py.

            binance.py Examples and Code Snippets

            Get started
            Pythondot img1Lines of Code : 10dot img1License : Permissive (MIT)
            copy iconCopy
            import binance
            
            client = binance.Client(API_KEY, API_SECRET)
            await client.load()
            
            order = await client.create_order(
                "ETHPAX", binance.Side.BUY.value, binance.OrderType.MARKET.value, quantity="1", test=True,
            )
            print(order)
            await client.close()
              
            Get binance.py
            Pythondot img2Lines of Code : 7dot img2License : Permissive (MIT)
            copy iconCopy
            # Linux/macOS
            python3 -m pip install -U binance.py
            
            # Windows
            py -3 -m pip install -U binance.py
            
            python setup.py sdist bdist_wheel
            python -m pip install dist/binance.py-X.X.X-py3-none-any.whl
              

            Community Discussions

            QUESTION

            Passing data from within a class into def
            Asked 2020-Oct-31 at 17:31

            When I run the binance.py file, I get an error like the following. I am sending data in class. How do I fix this?

            ...

            ANSWER

            Answered 2020-Oct-31 at 16:54

            It's saying, that you haven't defined the name process_message, if you define it somewhere in the class or in the file, the error will stop

            Source https://stackoverflow.com/questions/64624210

            QUESTION

            ccxt.base.errors.InvalidOrder: binance Order would trigger immediately
            Asked 2020-Jun-14 at 21:44

            I am using Python, Binance, and CCXT API libraries to create a BUY order on Binance. I am getting an error when executing the code below.

            ERROR: ccxt.base.errors.InvalidOrder: binance Order would trigger immediately.

            I have also added the inputs.

            Why am I getting this error?

            TIA

            CODE

            ...

            ANSWER

            Answered 2020-Jun-12 at 03:33

            The "Order would trigger immediately." exception is explained in Binance's API docs here: https://binance-docs.github.io/apidocs/#9xxx-filter-failures

            The order's stop price is not valid when compared to the last traded price.

            Source https://stackoverflow.com/questions/62317102

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install binance.py

            Generate an API Key and assign relevant permissions.
            import binance, create a client and send your first test order:
            Check some examples

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Th0rgal/binance.py.git

          • CLI

            gh repo clone Th0rgal/binance.py

          • sshUrl

            git@github.com:Th0rgal/binance.py.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link