{"id":24496852,"url":"https://github.com/10mohi6/btcbox-api-python-client","last_synced_at":"2025-10-02T16:31:05.796Z","repository":{"id":57416502,"uuid":"132112549","full_name":"10mohi6/btcbox-api-python-client","owner":"10mohi6","description":"btcbox-client is a python client (sync/async) library for btcbox api","archived":false,"fork":false,"pushed_at":"2019-04-22T10:26:20.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T07:32:57.115Z","etag":null,"topics":["api","async","btcbox","client","python","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/10mohi6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-04T08:34:09.000Z","updated_at":"2019-04-22T10:26:21.000Z","dependencies_parsed_at":"2022-09-26T20:11:03.231Z","dependency_job_id":null,"html_url":"https://github.com/10mohi6/btcbox-api-python-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10mohi6%2Fbtcbox-api-python-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10mohi6%2Fbtcbox-api-python-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10mohi6%2Fbtcbox-api-python-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10mohi6%2Fbtcbox-api-python-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10mohi6","download_url":"https://codeload.github.com/10mohi6/btcbox-api-python-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235021557,"owners_count":18923610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","async","btcbox","client","python","wrapper"],"created_at":"2025-01-21T21:19:07.144Z","updated_at":"2025-10-02T16:31:05.514Z","avatar_url":"https://github.com/10mohi6.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# btcbox-client\n\n[![PyPI version](https://badge.fury.io/py/btcbox-client.svg)](https://badge.fury.io/py/btcbox-client) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nbtcbox-client is a python client (sync/async) library for btcbox api\n\n## Installation\n\n    $ pip install btcbox-client\n\n## Usage\n\n```python\n#\n# sync\n#\nfrom btcbox_client.sync import Client\n\nclient = Client(public_key='your public key', private_key='your private key')\nresponse = client.ticker()\nprint(response.status_code, response.json())\n\n#\n# async\n#\nimport grequests\nfrom btcbox_client.async import Async\n\nclient = Async(public_key='your public key', private_key='your private key')\nreqs = [client.ticker(), client.depth(), client.orders(), ...]\nresponse = grequests.map(reqs)\nfor r in response:\n\tprint(r.status_code, r.json())\n\n#\n# /api/v1/ticker\n#\nclient.ticker()\n# {\"high\":39700,\"low\":36300,\"buy\":1.879,\"sell\":0,\"last\":38800,\"vol\":283.954}\n\n#\n# /api/v1/depth\n#\nclient.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#\nclient.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#\nclient.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#\nclient.wallet()\n# {\"result\":true, \"address\":\"1xxxxxxxxxxxxxxxxxxxxxxxx\"}\n\n#\n# /api/v1/trade_list\n#\nclient.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#\nclient.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#\nclient.trade_cancel(id=11)\n# {\"result\":true, \"id\":\"11\"}\n\n#\n# /api/v1/trade_add\n#\nclient.trade_add(amount=1, price=1, type='buy')\n# {\"result\":true, \"id\":\"11\"}\n```\n\n## Contributing\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10mohi6%2Fbtcbox-api-python-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10mohi6%2Fbtcbox-api-python-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10mohi6%2Fbtcbox-api-python-client/lists"}