{ "info": { "author": "Cai Yundong", "author_email": "yundong.cai@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# BitBay REST API for Python3\n\nSee full description at https://docs.bitbay.net/v1.0.1-en/reference\n\n## Installation\n\n```bash\n pip install python-bitbay\n```\n\n## Usage\n\nThe BBA constructor receive public and private key using to authentication.\n```python\nfrom python_bitbay import bitbay\n\nbitbay_client = bitbay.Bitbay(api_key='32345f3f-1b1d-1234-a923-a10b1bdba1b1', api_secret='4d539fe0-e3b0-4e4e-7c86-70b36aa93d4f')\n```\n\n## Public endpoints\n\n```python\n\nbitbay_client.get_ticker('BTC-EUR')\n\n# Get orderbook from LSK-PLN market\nbitbay_client.get_orderbook('LSK-PLN')\n\n# Get last 10 transactions on BTC-USD market from last 3 minutes\nbitbay_client.get_trades('BTC-USD', limit=10, fromTime=1531407461)\n\n# Get 30 minutes candles from last 4 hours\nbitbay_client.get_kline(symbol='BTC-PLN', second=1800, fromTime=1544158620, toTime=1544173061)\n```\n\n## Private endpoints\n### Trading\n\n```python\n\n# We want to buy 1 Bitcoin for 4000$ on BTC-USD market\nbitbay_client.create_order('BTC-USD', amount=1, rate=1, offerType='buy', mode='limit') # limit\nbitbay_client.create_order('BTC-USD', amount=1, price=100, offerType='buy', mode='market') # market\n\n# Let's get active offers from every market\nbitbay_client.get_active_orders()\n\n# Remove an offer\nbitbay_client.cancel_order('BTC-USD', '82ca35da-6eeb-4f30-91bb-165fdcf4d8b2', 'buy', 4000)\n\n# Get our trading fees on BTC-PLN market (default)\nbitbay_client.get_config()\n\n# Change default wallets to trade on BTC-USD\nbitbay_client.change_config('BTC-USD', first='455b3f25-8d3a-409f-9fe6-8cc40f1ce533', second='455b3f25-8d3a-509f-9fe6-8cc40f1ce542')\n```\n\n### Deposit and withdrawal\n```python\n# Get our address to deposit cryptocurrency on specified wallet\nbitbay_client.get_deposit_address(wallet_id='455b3f25-8d3a-409f-9fe6-8cc40f1ce533')\n\n# Generate new cryptocurrency address on specified wallet\nbitbay_client.generate_deposit_address(wallet_id='455b3f25-8d3a-409f-9fe6-8cc40f1ce533', currency='PLN')\n\n# Get all historical addresses from specified wallet\nbitbay_client.get_address_history(wallet_id='455b3f25-8d3a-409f-9fe6-8cc40f1ce533')\n\n# Let's send some Bitcoins\nbitbay_client.withdraw(wallet_id='455b3f25-8d3a-409f-9fe6-8cc40f1ce533', address='3Qck3sNnAe5YVLe9WDzMp3aK2cgsU7F5Wv', amount=0.5, comment='test')\n\n# Get address to deposit USD\nbitbay_client.get_igoria_deposit(symbol='USD')\n\n# Time for withdraw our USD\nbitbay_client.fiat_withdraw(wallet_id='455b3f25-8d3a-409f-9fe6-8cc40f1ce655', symbol='USD', { bank_account_number: 'PL82154012872216000073790002', address: '111A/109, 02-707 Warszawa', name: 'Igoria Trade S.A.', title: 'VVVe94d7e43536fVVV', swift: 'EBOSPLPWXXX' }\n```\n\n### History\n```python\n# Get transactions history for buy transactions from BTC-PLN where rate is from 23000 to 25000\nbitbay_client.get_trade_transactions(markets=['BTC-PLN'], rateFrom=23000, rateTo=25000, userAction='buy', nextPageCursor='start')\n\n# Get 20 last historical operations on XMR wallets and sort descending by time\nbitbay_client.get_operation_transactions(balanceCurrencies=[\"XMR\"], limit=\"20\", sort=[{\"order\":\"DESC\",\"by\":\"time\"}], nextPageCursor=\"start\")\n```\n\n### Manage wallets\n```python\n# Get balance with list of all wallets\nbitbay_client.get_balance()\n\n# Create a new wallet for Bitcoin\nbitbay_client.create_wallet(currency='BTC', type='crypto', name='trading')\n\n# I think that was a bad name, let's change it\nbitbay_client.change_wallet_name(wallet_id='455b3f25-8d3a-409f-9fe6-8cc40f1ce533', name='arbitration)\n\n# Send some cryptocurrency over our wallets\nbitbay_client.internal_transfer(source_id='455b3f25-8d3a-409f-9fe6-8cc40f1ce533', destination_id='455b3f25-8d3a-409f-9fe6-8cc40f1ce534', currency='BTC', funds=0.4)\n```\n\n## Donate\nIf this library helped you out feel free to donate.\n\nETH: 0xAbBeE2d8355310Bf61531DD94C086636194A4a54\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/caiyundong/bitbay_api_python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "python-bitbay", "package_url": "https://pypi.org/project/python-bitbay/", "platform": "", "project_url": "https://pypi.org/project/python-bitbay/", "project_urls": { "Homepage": "https://github.com/caiyundong/bitbay_api_python" }, "release_url": "https://pypi.org/project/python-bitbay/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Bitbay Exchange API python implementation for automated trading", "version": "0.0.5" }, "last_serial": 5701080, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a1242c67dabb3ee6929c01ade311e64e", "sha256": "b91845724754116e615856b0378897bd92b6ad8af158f333ddc6111e55887b2e" }, "downloads": -1, "filename": "python_bitbay-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a1242c67dabb3ee6929c01ade311e64e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5091, "upload_time": "2018-10-26T04:13:19", "url": "https://files.pythonhosted.org/packages/84/d9/b39febb5ee3b6fd36967a23a0376a836e7390967da532d9bc45aec7d2b25/python_bitbay-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57f272192c9c8083e64d1a8b0acb59a0", "sha256": "4caaf9f961c8b4281f65284c515c81cb39166a2ecd5336f525a34ab4c5589554" }, "downloads": -1, "filename": "python-bitbay-0.0.1.tar.gz", "has_sig": false, "md5_digest": "57f272192c9c8083e64d1a8b0acb59a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3580, "upload_time": "2018-10-26T04:13:21", "url": "https://files.pythonhosted.org/packages/ac/83/b15040ae376660b018fe731aa065e7863a0b366172ed9b62b96e12eadacd/python-bitbay-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "3f6dc14c16cf992b6b9c02d3dd285467", "sha256": "a6e8706de2abeec78d312ec3a5a5c3a7e26b6b9511936e022df50e678b834a7f" }, "downloads": -1, "filename": "python_bitbay-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "3f6dc14c16cf992b6b9c02d3dd285467", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10498, "upload_time": "2018-10-26T04:34:14", "url": "https://files.pythonhosted.org/packages/0d/2f/4d3855341974f504fb07e2d2f6a105f0ccf37dee630c63510bd0f8f962a4/python_bitbay-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "47337f1eb5874c17708a3c393edfd1ad", "sha256": "6169090055eab7a937779da5d05d8dbd00972a5039afac6d7de4501329bdb90d" }, "downloads": -1, "filename": "python_bitbay-0.0.2.tar.gz", "has_sig": false, "md5_digest": "47337f1eb5874c17708a3c393edfd1ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5080, "upload_time": "2018-10-26T04:34:15", "url": "https://files.pythonhosted.org/packages/db/a1/5529deb7f71f4ae4d7ad58f944b427fd0daf0ed2519c87c735c23d8735d5/python_bitbay-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "782de1173ef8f115dced35d8125d4fc3", "sha256": "2c51db4d748c7411c4271f2c099282c15ade2d72f3484c5f0e60e08a8e92da55" }, "downloads": -1, "filename": "python_bitbay-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "782de1173ef8f115dced35d8125d4fc3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10503, "upload_time": "2018-10-26T04:38:13", "url": "https://files.pythonhosted.org/packages/30/f7/74bdc8fb46edeb56e89a77914c7b0a0de8ae54de8938c84827a71bb870ef/python_bitbay-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce20218ce37c1abc99c203cef1e3fa0c", "sha256": "1e54fe2a6fa7bd61e692fc3961d7d2bd5f0a25ba47b403ebeae4ae0d26dbcf25" }, "downloads": -1, "filename": "python-bitbay-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ce20218ce37c1abc99c203cef1e3fa0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5085, "upload_time": "2018-10-26T04:38:14", "url": "https://files.pythonhosted.org/packages/7b/6e/4234b6bef879787936e5cebb0078c8ffd429ce7a9571050a1f06b3a706b0/python-bitbay-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "4bfc58704ecb6bc66c761a2fd43370eb", "sha256": "f3099b48df25ba87340e5c611c32eadd6c161d231c1ff533e76493b4dc068583" }, "downloads": -1, "filename": "python_bitbay-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "4bfc58704ecb6bc66c761a2fd43370eb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10662, "upload_time": "2018-10-26T06:05:35", "url": "https://files.pythonhosted.org/packages/64/99/0df338b7586ef190bc63285dffdb0e57bd93f67375b77e6ca125be430711/python_bitbay-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22a00c1e033e58fa91d9689c2a9fdda0", "sha256": "a4f008831a05dc79b40d6145e4340c660537d47cdc4310313606659a366687b6" }, "downloads": -1, "filename": "python-bitbay-0.0.4.tar.gz", "has_sig": false, "md5_digest": "22a00c1e033e58fa91d9689c2a9fdda0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5183, "upload_time": "2018-10-26T06:05:37", "url": "https://files.pythonhosted.org/packages/ad/b7/6a6da71622b051317e7c4580f5d6ed533d14ae2f53d75332759c984bfe19/python-bitbay-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "7d62aa37b61eeefeb46fe56e6fe7406c", "sha256": "dafae92db2d7de7b5853d1e3aa945ecc46fd818c3f110b5b483ca09f8c96a1df" }, "downloads": -1, "filename": "python_bitbay-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "7d62aa37b61eeefeb46fe56e6fe7406c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9307, "upload_time": "2019-08-20T01:26:40", "url": "https://files.pythonhosted.org/packages/33/6a/1f2e1a7c2d44a4d3ae5870b2f59d061488fcbca8a14f50ce516f2a8135a9/python_bitbay-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "731a97f7068b7a59d13e8cb6df747d36", "sha256": "61db77cc3ffc08cc6b9f5d1b73ad0585a66aa43ca5bed4d217f2b719668c4976" }, "downloads": -1, "filename": "python-bitbay-0.0.5.tar.gz", "has_sig": false, "md5_digest": "731a97f7068b7a59d13e8cb6df747d36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5247, "upload_time": "2019-08-20T01:26:42", "url": "https://files.pythonhosted.org/packages/3e/53/cde65eab629f8165ea25b12767b3a5033c93c1eceecfd65ab9704525c88e/python-bitbay-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7d62aa37b61eeefeb46fe56e6fe7406c", "sha256": "dafae92db2d7de7b5853d1e3aa945ecc46fd818c3f110b5b483ca09f8c96a1df" }, "downloads": -1, "filename": "python_bitbay-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "7d62aa37b61eeefeb46fe56e6fe7406c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9307, "upload_time": "2019-08-20T01:26:40", "url": "https://files.pythonhosted.org/packages/33/6a/1f2e1a7c2d44a4d3ae5870b2f59d061488fcbca8a14f50ce516f2a8135a9/python_bitbay-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "731a97f7068b7a59d13e8cb6df747d36", "sha256": "61db77cc3ffc08cc6b9f5d1b73ad0585a66aa43ca5bed4d217f2b719668c4976" }, "downloads": -1, "filename": "python-bitbay-0.0.5.tar.gz", "has_sig": false, "md5_digest": "731a97f7068b7a59d13e8cb6df747d36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5247, "upload_time": "2019-08-20T01:26:42", "url": "https://files.pythonhosted.org/packages/3e/53/cde65eab629f8165ea25b12767b3a5033c93c1eceecfd65ab9704525c88e/python-bitbay-0.0.5.tar.gz" } ] }