python3-binance
Advanced tools
+21
| MIT License | ||
| Copyright (c) 2017 sammchardy | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
+36
| Metadata-Version: 2.1 | ||
| Name: python3-binance | ||
| Version: 0.7.2 | ||
| Summary: Binance REST API python implementation | ||
| Home-page: https://github.com/sammchardy/python-binance | ||
| Author: Sam McHardy | ||
| Author-email: UNKNOWN | ||
| License: MIT | ||
| Keywords: binance exchange rest api bitcoin ethereum btc eth neo | ||
| Platform: UNKNOWN | ||
| Classifier: Intended Audience :: Developers | ||
| Classifier: License :: OSI Approved :: MIT License | ||
| Classifier: Operating System :: OS Independent | ||
| Classifier: Programming Language :: Python :: 2 | ||
| Classifier: Programming Language :: Python :: 2.7 | ||
| Classifier: Programming Language :: Python :: 3 | ||
| Classifier: Programming Language :: Python :: 3.4 | ||
| Classifier: Programming Language :: Python :: 3.5 | ||
| Classifier: Programming Language :: Python :: 3.6 | ||
| Classifier: Programming Language :: Python | ||
| Classifier: Topic :: Software Development :: Libraries :: Python Modules | ||
| Requires-Dist: Twisted | ||
| Requires-Dist: autobahn | ||
| Requires-Dist: certifi | ||
| Requires-Dist: chardet | ||
| Requires-Dist: cryptography | ||
| Requires-Dist: dateparser | ||
| Requires-Dist: pyOpenSSL | ||
| Requires-Dist: requests | ||
| Requires-Dist: service-identity | ||
| Requires-Dist: six | ||
| Requires-Dist: urllib3 | ||
| UNKNOWN | ||
+12
| binance/__init__.py,sha256=GYl3zKZJG4kD3staA_O5A5-XZ82K4yUgmq_j3ncV61M,100 | ||
| binance/client.py,sha256=LArq0jOHK-gUUG8R2d7nWzy6vx3pqXuYHNm1AG0IGRs,71057 | ||
| binance/depthcache.py,sha256=FSgdZKfl06oPFWoeD76eL5wU1TjzvQTjFDX27CoPmvM,7343 | ||
| binance/enums.py,sha256=HD2GeNUBEStJEmwU16nnjROd_TEysi2YIZkSmifzyGU,1352 | ||
| binance/exceptions.py,sha256=sArnDoZKvtGOAYk5iNLZQosJOZxwxRLBijoMfNpR6cc,2534 | ||
| binance/helpers.py,sha256=S4kauoj4vJfxeVCWTzDK3BQzqAHu_49-U6ruo25lXiQ,1548 | ||
| binance/websockets.py,sha256=TrAE_34c4bN0Xpazv70I7JaIySkY0AVaRa6cYuxRAiY,19035 | ||
| python3_binance-0.7.2.dist-info/LICENSE,sha256=sOZ_Wlz0vmPhfC4m212erhkaDlBxjkomFyQXwgmiR-w,1067 | ||
| python3_binance-0.7.2.dist-info/METADATA,sha256=DRAz-F125Lyv0RyzaruWHA1dO04W9tvkYpmDhz4FNC4,1136 | ||
| python3_binance-0.7.2.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110 | ||
| python3_binance-0.7.2.dist-info/top_level.txt,sha256=xMXwvXpjhx_3huR75xLUk8CBjUv0g4S8-TM8cROS1HA,8 | ||
| python3_binance-0.7.2.dist-info/RECORD,, |
| binance |
+6
| Wheel-Version: 1.0 | ||
| Generator: bdist_wheel (0.37.1) | ||
| Root-Is-Purelib: true | ||
| Tag: py2-none-any | ||
| Tag: py3-none-any | ||
@@ -37,3 +37,3 @@ # coding=utf-8 | ||
| if self.delay_generator: | ||
| time.sleep(random.randint(0,10)) | ||
| time.sleep(random.randint(0,1)) | ||
| payload_obj = json.loads(payload.decode('utf8')) | ||
@@ -40,0 +40,0 @@ except ValueError: |
-22
| Metadata-Version: 1.1 | ||
| Name: python3-binance | ||
| Version: 0.7.1 | ||
| Summary: Binance REST API python implementation | ||
| Home-page: https://github.com/sammchardy/python-binance | ||
| Author: Sam McHardy | ||
| Author-email: UNKNOWN | ||
| License: MIT | ||
| Description: UNKNOWN | ||
| Keywords: binance exchange rest api bitcoin ethereum btc eth neo | ||
| Platform: UNKNOWN | ||
| Classifier: Intended Audience :: Developers | ||
| Classifier: License :: OSI Approved :: MIT License | ||
| Classifier: Operating System :: OS Independent | ||
| Classifier: Programming Language :: Python :: 2 | ||
| Classifier: Programming Language :: Python :: 2.7 | ||
| Classifier: Programming Language :: Python :: 3 | ||
| Classifier: Programming Language :: Python :: 3.4 | ||
| Classifier: Programming Language :: Python :: 3.5 | ||
| Classifier: Programming Language :: Python :: 3.6 | ||
| Classifier: Programming Language :: Python | ||
| Classifier: Topic :: Software Development :: Libraries :: Python Modules |
| Metadata-Version: 1.1 | ||
| Name: python3-binance | ||
| Version: 0.7.1 | ||
| Summary: Binance REST API python implementation | ||
| Home-page: https://github.com/sammchardy/python-binance | ||
| Author: Sam McHardy | ||
| Author-email: UNKNOWN | ||
| License: MIT | ||
| Description: UNKNOWN | ||
| Keywords: binance exchange rest api bitcoin ethereum btc eth neo | ||
| Platform: UNKNOWN | ||
| Classifier: Intended Audience :: Developers | ||
| Classifier: License :: OSI Approved :: MIT License | ||
| Classifier: Operating System :: OS Independent | ||
| Classifier: Programming Language :: Python :: 2 | ||
| Classifier: Programming Language :: Python :: 2.7 | ||
| Classifier: Programming Language :: Python :: 3 | ||
| Classifier: Programming Language :: Python :: 3.4 | ||
| Classifier: Programming Language :: Python :: 3.5 | ||
| Classifier: Programming Language :: Python :: 3.6 | ||
| Classifier: Programming Language :: Python | ||
| Classifier: Topic :: Software Development :: Libraries :: Python Modules |
| Twisted | ||
| autobahn | ||
| certifi | ||
| chardet | ||
| cryptography | ||
| dateparser | ||
| pyOpenSSL | ||
| requests | ||
| service-identity | ||
| six | ||
| urllib3 |
| README.rst | ||
| setup.cfg | ||
| setup.py | ||
| binance/__init__.py | ||
| binance/client.py | ||
| binance/depthcache.py | ||
| binance/enums.py | ||
| binance/exceptions.py | ||
| binance/helpers.py | ||
| binance/websockets.py | ||
| python3_binance.egg-info/PKG-INFO | ||
| python3_binance.egg-info/SOURCES.txt | ||
| python3_binance.egg-info/dependency_links.txt | ||
| python3_binance.egg-info/requires.txt | ||
| python3_binance.egg-info/top_level.txt |
-156
| ================================ | ||
| Welcome to python-binance v0.7.1 | ||
| ================================ | ||
| .. image:: https://img.shields.io/pypi/v/python-binance.svg | ||
| :target: https://pypi.python.org/pypi/python-binance | ||
| .. image:: https://img.shields.io/pypi/l/python-binance.svg | ||
| :target: https://pypi.python.org/pypi/python-binance | ||
| .. image:: https://img.shields.io/travis/sammchardy/python-binance.svg | ||
| :target: https://travis-ci.org/sammchardy/python-binance | ||
| .. image:: https://img.shields.io/coveralls/sammchardy/python-binance.svg | ||
| :target: https://coveralls.io/github/sammchardy/python-binance | ||
| .. image:: https://img.shields.io/pypi/wheel/python-binance.svg | ||
| :target: https://pypi.python.org/pypi/python-binance | ||
| .. image:: https://img.shields.io/pypi/pyversions/python-binance.svg | ||
| :target: https://pypi.python.org/pypi/python-binance | ||
| This is an unofficial Python wrapper for the `Binance exchange REST API v1/3 <https://github.com/binance-exchange/binance-official-api-docs>`_. I am in no way affiliated with Binance, use at your own risk. | ||
| If you came here looking for the `Binance exchange <https://www.binance.com/?ref=10099792>`_ to purchase cryptocurrencies, then `go here <https://www.binance.com/?ref=10099792>`_. If you want to automate interactions with Binance stick around. | ||
| Source code | ||
| https://github.com/sammchardy/python-binance | ||
| Documentation | ||
| https://python-binance.readthedocs.io/en/latest/ | ||
| Binance API Telegram | ||
| https://t.me/binance_api_english | ||
| Blog with examples | ||
| https://sammchardy.github.io | ||
| Make sure you update often and check the `Changelog <https://python-binance.readthedocs.io/en/latest/changelog.html>`_ for new features and bug fixes. | ||
| Features | ||
| -------- | ||
| - Implementation of all General, Market Data and Account endpoints. | ||
| - Simple handling of authentication | ||
| - No need to generate timestamps yourself, the wrapper does it for you | ||
| - Response exception handling | ||
| - Websocket handling with reconnection and multiplexed connections | ||
| - Symbol Depth Cache | ||
| - Historical Kline/Candle fetching function | ||
| - Withdraw functionality | ||
| - Deposit addresses | ||
| Quick Start | ||
| ----------- | ||
| `Register an account with Binance <https://www.binance.com/register.html?ref=10099792>`_. | ||
| `Generate an API Key <https://www.binance.com/userCenter/createApi.html>`_ and assign relevant permissions. | ||
| .. code:: bash | ||
| pip install python-binance | ||
| .. code:: python | ||
| from binance.client import Client | ||
| client = Client(api_key, api_secret) | ||
| # get market depth | ||
| depth = client.get_order_book(symbol='BNBBTC') | ||
| # place a test market buy order, to place an actual order use the create_order function | ||
| order = client.create_test_order( | ||
| symbol='BNBBTC', | ||
| side=Client.SIDE_BUY, | ||
| type=Client.ORDER_TYPE_MARKET, | ||
| quantity=100) | ||
| # get all symbol prices | ||
| prices = client.get_all_tickers() | ||
| # withdraw 100 ETH | ||
| # check docs for assumptions around withdrawals | ||
| from binance.exceptions import BinanceAPIException, BinanceWithdrawException | ||
| try: | ||
| result = client.withdraw( | ||
| asset='ETH', | ||
| address='<eth_address>', | ||
| amount=100) | ||
| except BinanceAPIException as e: | ||
| print(e) | ||
| except BinanceWithdrawException as e: | ||
| print(e) | ||
| else: | ||
| print("Success") | ||
| # fetch list of withdrawals | ||
| withdraws = client.get_withdraw_history() | ||
| # fetch list of ETH withdrawals | ||
| eth_withdraws = client.get_withdraw_history(asset='ETH') | ||
| # get a deposit address for BTC | ||
| address = client.get_deposit_address(asset='BTC') | ||
| # start aggregated trade websocket for BNBBTC | ||
| def process_message(msg): | ||
| print("message type: {}".format(msg['e'])) | ||
| print(msg) | ||
| # do something | ||
| from binance.websockets import BinanceSocketManager | ||
| bm = BinanceSocketManager(client) | ||
| bm.start_aggtrade_socket('BNBBTC', process_message) | ||
| bm.start() | ||
| # get historical kline data from any date range | ||
| # fetch 1 minute klines for the last day up until now | ||
| klines = client.get_historical_klines("BNBBTC", Client.KLINE_INTERVAL_1MINUTE, "1 day ago UTC") | ||
| # fetch 30 minute klines for the last month of 2017 | ||
| klines = client.get_historical_klines("ETHBTC", Client.KLINE_INTERVAL_30MINUTE, "1 Dec, 2017", "1 Jan, 2018") | ||
| # fetch weekly klines since it listed | ||
| klines = client.get_historical_klines("NEOBTC", Client.KLINE_INTERVAL_1WEEK, "1 Jan, 2017") | ||
| For more `check out the documentation <https://python-binance.readthedocs.io/en/latest/>`_. | ||
| Donate | ||
| ------ | ||
| If this library helped you out feel free to donate. | ||
| - ETH: 0xD7a7fDdCfA687073d7cC93E9E51829a727f9fE70 | ||
| - LTC: LPC5vw9ajR1YndE1hYVeo3kJ9LdHjcRCUZ | ||
| - NEO: AVJB4ZgN7VgSUtArCt94y7ZYT6d5NDfpBo | ||
| - BTC: 1Dknp6L6oRZrHDECRedihPzx2sSfmvEBys | ||
| Other Exchanges | ||
| --------------- | ||
| If you use `Quoinex <https://accounts.quoinex.com/sign-up?affiliate=PAxghztC67615>`_ | ||
| or `Qryptos <https://accounts.qryptos.com/sign-up?affiliate=PAxghztC67615>`_ check out my `python-quoine <https://github.com/sammchardy/python-quoine>`_ library. | ||
| If you use `Kucoin <https://www.kucoin.com/#/?r=E42cWB>`_ check out my `python-kucoin <https://github.com/sammchardy/python-kucoin>`_ library. | ||
| If you use `Allcoin <https://www.allcoin.com/Account/RegisterByPhoneNumber/?InviteCode=MTQ2OTk4MDgwMDEzNDczMQ==>`_ check out my `python-allucoin <https://github.com/sammchardy/python-allcoin>`_ library. | ||
| If you use `IDEX <https://idex.market>`_ check out my `python-idex <https://github.com/sammchardy/python-idex>`_ library. | ||
| If you use `BigONE <https://big.one>`_ check out my `python-bigone <https://github.com/sammchardy/python-bigone>`_ library. | ||
| .. image:: https://analytics-pixel.appspot.com/UA-111417213-1/github/python-binance?pixel&useReferer |
-10
| [bdist_wheel] | ||
| universal = 1 | ||
| [pep8] | ||
| ignore = E501 | ||
| [egg_info] | ||
| tag_build = | ||
| tag_date = 0 | ||
-28
| #!/usr/bin/env python | ||
| from setuptools import setup | ||
| setup( | ||
| name='python3-binance', | ||
| version='0.7.1', | ||
| packages=['binance'], | ||
| description='Binance REST API python implementation', | ||
| url='https://github.com/sammchardy/python-binance', | ||
| author='Sam McHardy', | ||
| license='MIT', | ||
| author_email='', | ||
| install_requires=['requests', 'six', 'Twisted', 'pyOpenSSL', 'autobahn', 'service-identity', 'dateparser', 'urllib3', 'chardet', 'certifi', 'cryptography', ], | ||
| keywords='binance exchange rest api bitcoin ethereum btc eth neo', | ||
| classifiers=[ | ||
| 'Intended Audience :: Developers', | ||
| 'License :: OSI Approved :: MIT License', | ||
| 'Operating System :: OS Independent', | ||
| 'Programming Language :: Python :: 2', | ||
| 'Programming Language :: Python :: 2.7', | ||
| 'Programming Language :: Python :: 3', | ||
| 'Programming Language :: Python :: 3.4', | ||
| 'Programming Language :: Python :: 3.5', | ||
| 'Programming Language :: Python :: 3.6', | ||
| 'Programming Language :: Python', | ||
| 'Topic :: Software Development :: Libraries :: Python Modules', | ||
| ], | ||
| ) |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
0
-100%0
-100%0
-100%