{ "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": "btcbox-client\n=============\n\n|PyPI version| |License: MIT|\n\nbtcbox-client is a python client (sync/async) library for btcbox api\n\nInstallation\n------------\n\n::\n\n $ pip install btcbox-client\n\nUsage\n-----\n\n.. code:: python\n\n #\n # sync\n #\n from btcbox_client.sync import Client\n\n client = Client(public_key='your public key', private_key='your private key')\n response = client.ticker()\n print(response.status_code, response.json())\n\n #\n # async\n #\n import grequests\n from btcbox_client.async import Async\n\n client = Async(public_key='your public key', private_key='your private key')\n reqs = [client.ticker(), client.depth(), client.orders(), ...]\n response = grequests.map(reqs)\n for r in response:\n print(r.status_code, r.json())\n\n #\n # /api/v1/ticker\n #\n client.ticker()\n # {\"high\":39700,\"low\":36300,\"buy\":1.879,\"sell\":0,\"last\":38800,\"vol\":283.954}\n\n #\n # /api/v1/depth\n #\n client.depth()\n # {\"asks\":[[70000,5],[69000,0.48],[67000,0.9999],[64498,0.02],[61160,0.017],[60980,0.03],[60000,0.1924],[55900,1.4],[55100,2],[55044,0.019],[54500,0.7836],[54190,1],[52500,5.8645],[51500,5.6594],[51490,0.02],[47500,7],[45999,0.0244],[44585,0.024],[43000,10],[41700,10],[41300,6],[40900,10],[40500,6],[40125,10.0277],[40100,5],[40089,0.509],[39800,14.7132],[39799,0.0695],[39798,5],[39700,2.89],[39000,0.209]],\"bids\":[[38300,1.879],[38100,1.0078],[38000,1.24],[37700,4.706],[37600,3.8313],[37001,0.146],[36999,5.8],[36400,5],[36200,1.3314],[36002,2],[36000,1.568],[35501,0.282],[35500,9.9],[35200,5.6],[35010,10],[35001,0.03],[34600,7.6],[34500,5.505],[34200,9.3],[34000,6.4],[33800,4.434],[33333,3],[32830,0.0305],[31800,2],[31500,3.018],[30001,0.03],[30000,11.48],[28000,10],[25001,0.04],[22000,5.863],[20001,0.05],[460,10]]}\n\n #\n # /api/v1/orders\n #\n client.orders()\n # [{\"date\":\"0\",\"price\":3,\"amount\":0.1,\"tid\":\"1\",\"type\":\"buy\"},{\"date\":\"0\",\"price\":32323,\"amount\":2,\"tid\":\"2\",\"type\":\"sell\"},{\"date\":\"0\",\"price\":32,\"amount\":432,\"tid\":\"3\",\"type\":\"sell\"},{\"date\":\"0\",\"price\":323,\"amount\":2,\"tid\":\"4\",\"type\":\"sell\"},{\"date\":\"0\",\"price\":2100,\"amount\":0.3,\"tid\":\"5\",\"type\":\"buy\"}]\n\n #\n # /api/v1/balance\n #\n client.balance()\n # {\"uid\":8,\"nameauth\":0,\"moflag\":0,\"btc_balance\":4234234,\"btc_lock\":0,\"ltc_balance\":32429.6,\"ltc_lock\":2.4,\"doge_balance\":0,\"doge_lock\":0,\"jpy_balance\":2344581.519,\"jpy_lock\":868862.481}\n\n #\n # /api/v1/wallet\n #\n client.wallet()\n # {\"result\":true, \"address\":\"1xxxxxxxxxxxxxxxxxxxxxxxx\"}\n\n #\n # /api/v1/trade_list\n #\n client.trade_list()\n # [{\"id\":\"11\",\"datetime\":\"2014-10-21 10:47:20\",\"type\":\"sell\",\"price\":42000,\"amount_original\":1.2,\"amount_outstanding\":1.2},{\"id\":\"10\",\"datetime\":\"2014-10-20 13:29:39\",\"type\":\"sell\",\"price\":42000,\"amount_original\":1.2,\"amount_outstanding\":1.2},{\"id\":\"9\",\"datetime\":\"2014-10-20 13:29:29\",\"type\":\"sell\",\"price\":42000,\"amount_original\":1.2,\"amount_outstanding\":1.2},{\"id\":\"8\",\"datetime\":\"2014-10-20 13:28:14\",\"type\":\"buy\",\"price\":42800,\"amount_original\":0.34,\"amount_outstanding\":0.34},{\"id\":\"7\",\"datetime\":\"2014-10-20 13:27:38\",\"type\":\"buy\",\"price\":42750,\"amount_original\":0.235,\"amount_outstanding\":0.235},{\"id\":\"6\",\"datetime\":\"2014-10-20 13:27:15\",\"type\":\"buy\",\"price\":43299,\"amount_original\":4.789,\"amount_outstanding\":4.789},{\"id\":\"5\",\"datetime\":\"2014-10-20 13:26:52\",\"type\":\"buy\",\"price\":42500,\"amount_original\":14,\"amount_outstanding\":14},{\"id\":\"4\",\"datetime\":\"2014-10-20 13:26:23\",\"type\":\"buy\",\"price\":43200,\"amount_original\":0.4813,\"amount_outstanding\":0.4813},{\"id\":\"3\",\"datetime\":\"2014-10-20 13:25:57\",\"type\":\"buy\",\"price\":43200,\"amount_original\":0.4813,\"amount_outstanding\":0.4813}]\n\n #\n # /api/v1/trade_view\n #\n client.trade_view(id=11)\n # {\"id\":11,\"datetime\":\"2014-10-21 10:47:20\",\"type\":\"sell\",\"price\":42000,\"amount_original\":1.2,\"amount_outstanding\":1.2,\"status\":\"closed\",\"trades\":[]}\n\n #\n # /api/v1/trade_cancel\n #\n client.trade_cancel(id=11)\n # {\"result\":true, \"id\":\"11\"}\n\n #\n # /api/v1/trade_add\n #\n client.trade_add(amount=1, price=1, type='buy')\n # {\"result\":true, \"id\":\"11\"}\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/btcbox-client.svg\n :target: https://badge.fury.io/py/btcbox-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/btcbox-api-python-client", "keywords": "btcbox", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "btcbox-client", "package_url": "https://pypi.org/project/btcbox-client/", "platform": "", "project_url": "https://pypi.org/project/btcbox-client/", "project_urls": { "Homepage": "https://github.com/10mohi6/btcbox-api-python-client" }, "release_url": "https://pypi.org/project/btcbox-client/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "btcbox-client is a python client (sync/async) library for btcbox api.", "version": "0.1.1" }, "last_serial": 5172425, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0d2ae54303bf918ba2f442fe8ac8fe5e", "sha256": "04fa4b9b3a3c93ce0fb6dfb34bcddb4f7faac71913a6b5f1990c647dde57bce4" }, "downloads": -1, "filename": "btcbox-client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0d2ae54303bf918ba2f442fe8ac8fe5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3656, "upload_time": "2018-05-06T16:23:25", "url": "https://files.pythonhosted.org/packages/13/e7/39e3f10598c3bfe8be9a59a65c24fe3fb1a1317be6221413ce1a2758e9a3/btcbox-client-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "55d2c30ffd3f2b62e97f5bd3c8b4ad58", "sha256": "436b5f98006429ebaa339bc17792e3f7cea98c82d3f81e1443b65187c550727d" }, "downloads": -1, "filename": "btcbox-client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "55d2c30ffd3f2b62e97f5bd3c8b4ad58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3729, "upload_time": "2019-04-22T10:26:48", "url": "https://files.pythonhosted.org/packages/8f/42/e4b99a19bd59c1ef1a5a2d200d14e65f87ff570a029b70e5cfbf7d00f167/btcbox-client-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "55d2c30ffd3f2b62e97f5bd3c8b4ad58", "sha256": "436b5f98006429ebaa339bc17792e3f7cea98c82d3f81e1443b65187c550727d" }, "downloads": -1, "filename": "btcbox-client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "55d2c30ffd3f2b62e97f5bd3c8b4ad58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3729, "upload_time": "2019-04-22T10:26:48", "url": "https://files.pythonhosted.org/packages/8f/42/e4b99a19bd59c1ef1a5a2d200d14e65f87ff570a029b70e5cfbf7d00f167/btcbox-client-0.1.1.tar.gz" } ] }