{ "info": { "author": "10mohi6", "author_email": "10.mohi.6.y@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "bitbank-client\n==============\n\n|PyPI version| |License: MIT|\n\nbitbank-client is a python client (sync/async) library for bitbank api\n\nInstallation\n------------\n\n::\n\n $ pip install bitbank-client\n\nUsage\n-----\n\n.. code:: python\n\n #\n # sync\n #\n from bitbank_client.sync import Client\n\n client = Client(public_key='your api key', private_key='your api secret')\n response = client.get_ticker(pair='btc_jpy')\n print(response.status_code, response.json())\n\n #\n # async\n #\n import grequests\n from bitbank_client.async import Async\n\n client = Async(public_key='your api key', private_key='your api secret')\n reqs = [client.get_ticker(pair='btc_jpy'), client.get_depth(pair='btc_jpy'), ...]\n response = grequests.map(reqs)\n for r in response:\n print(r.status_code, r.json())\n\n\n client.get_ticker(pair='btc_jpy') # GET /{pair}/ticker\n client.get_depth(pair='btc_jpy') # GET /{pair}/depth\n client.get_transactions(pair='btc_jpy') # GET /{pair}/transactions\n client.get_transactions(pair='btc_jpy', yyyymmdd='20180509') # GET /{pair}/transactions/{YYYYMMDD}\n client.get_candlestick(pair='btc_jpy', candle_type='1day', yyyymmdd='2018') # GET /{pair}/candlestick/{candle-type}/{YYYY}\n client.get_candlestick(pair='btc_jpy', candle_type='1hour', yyyymmdd='20180510') # GET /{pair}/candlestick/{candle-type}/{YYYY}\n client.get_assets() # GET /user/assets\n client.get_order(pair='btc_jpy', order_id=1) # GET /user/spot/order\n client.order(pair='btc_jpy', amount=1, price=1, side='buy', type='limit') # POST /user/spot/order\n client.cancel_order(pair='btc_jpy', order_id=1) # POST /user/spot/cancel_order\n client.cancel_orders(pair='btc_jpy', order_ids=[1,2]) # POST /user/spot/cancel_orders\n client.orders_info(pair='btc_jpy', order_ids=[1,2]) # POST /user/spot/orders_info\n client.get_active_orders(pair='btc_jpy') # GET /user/spot/active_orders\n client.get_trade_history(pair='btc_jpy') # GET /user/spot/trade_history\n client.get_withdrawal_account(asset='btc') # GET /user/withdrawal_account\n client.request_withdrawal(asset='btc', uuid=1, amount=1) # POST /user/request_withdrawal\n client.request_withdrawal(asset='btc', uuid=1, amount=1, otp_token='xxx') # POST /user/request_withdrawal\n client.request_withdrawal(asset='btc', uuid=1, amount=1, sms_token='xxx') # POST /user/request_withdrawal\n\nContributing\n------------\n\n1. Fork it\n2. Create your feature branch (``git checkout -b my-new-feature``)\n3. Commit your changes (``git commit -am 'Add some feature'``)\n4. Push to the branch (``git push origin my-new-feature``)\n5. Create new Pull Request\n\n.. |PyPI version| image:: https://badge.fury.io/py/bitbank-client.svg\n :target: https://badge.fury.io/py/bitbank-client\n.. |License: MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg\n :target: https://opensource.org/licenses/MIT", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/10mohi6/bitbank-api-python-client", "keywords": "bitbank", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bitbank-client", "package_url": "https://pypi.org/project/bitbank-client/", "platform": "", "project_url": "https://pypi.org/project/bitbank-client/", "project_urls": { "Homepage": "https://github.com/10mohi6/bitbank-api-python-client" }, "release_url": "https://pypi.org/project/bitbank-client/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "bitbank-client is a python client (sync/async) library for bitbank api.", "version": "0.1.1" }, "last_serial": 5175638, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2c28b2c08ed556745b211b5c8161b17f", "sha256": "25274154099602f8aaf3e78af473fdc5fe32890940b3c09fd4121796854cee57" }, "downloads": -1, "filename": "bitbank-client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2c28b2c08ed556745b211b5c8161b17f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3083, "upload_time": "2018-05-10T10:10:15", "url": "https://files.pythonhosted.org/packages/9b/8e/76ce47a50f02c87e80eae5d77cb3775d66b8fe48501a266c97f949857a32/bitbank-client-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "455c0dd5fbc652436c9b86330f980bf4", "sha256": "4e0b18ac457b13cb047c2194b5e138784152c4538b940dc8f23fa3b6bf3bbc17" }, "downloads": -1, "filename": "bitbank-client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "455c0dd5fbc652436c9b86330f980bf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3143, "upload_time": "2019-04-23T05:28:09", "url": "https://files.pythonhosted.org/packages/f2/1f/f7f73a61bbfeb85335242efa2f49f4ca195574465828779d7ab78da9d23d/bitbank-client-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "455c0dd5fbc652436c9b86330f980bf4", "sha256": "4e0b18ac457b13cb047c2194b5e138784152c4538b940dc8f23fa3b6bf3bbc17" }, "downloads": -1, "filename": "bitbank-client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "455c0dd5fbc652436c9b86330f980bf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3143, "upload_time": "2019-04-23T05:28:09", "url": "https://files.pythonhosted.org/packages/f2/1f/f7f73a61bbfeb85335242efa2f49f4ca195574465828779d7ab78da9d23d/bitbank-client-0.1.1.tar.gz" } ] }