{"id":16419730,"url":"https://github.com/ericls/huobi","last_synced_at":"2025-07-25T17:06:44.432Z","repository":{"id":28496118,"uuid":"117400859","full_name":"ericls/huobi","owner":"ericls","description":"Huobi python sdk","archived":false,"fork":false,"pushed_at":"2022-12-07T23:52:16.000Z","size":93,"stargazers_count":19,"open_issues_count":11,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T11:48:35.753Z","etag":null,"topics":["cryptocurrency","huobi","python","sdk","trading"],"latest_commit_sha":null,"homepage":null,"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/ericls.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-14T04:14:53.000Z","updated_at":"2023-09-27T07:46:29.000Z","dependencies_parsed_at":"2022-07-27T14:30:57.439Z","dependency_job_id":null,"html_url":"https://github.com/ericls/huobi","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/ericls%2Fhuobi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericls%2Fhuobi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericls%2Fhuobi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericls%2Fhuobi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericls","download_url":"https://codeload.github.com/ericls/huobi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822295,"owners_count":20353500,"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":["cryptocurrency","huobi","python","sdk","trading"],"created_at":"2024-10-11T07:25:45.333Z","updated_at":"2025-03-16T17:34:06.653Z","avatar_url":"https://github.com/ericls.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Huobi\n\nHuobi Python SDK\n\n## Requirements\n```bash\nPython\u003e=3.6\n```\n\n## Installaton\n```bash\npip install huobi\n```\n\n## Usage\n### Rest API\nExample: \n```python\n\u003e\u003e\u003e from huobi import HuobiRestClient\n\u003e\u003e\u003e client = HuobiRestClient(access_key=..., secret_key=...)\n\u003e\u003e\u003e trades = client.market_history_trade(symbol='ethusdt').data\n```\nTo see all available methods and their arguments:\n```python\n\u003e\u003e\u003e from huobi import HuobiRestClient\n\u003e\u003e\u003e help(HuobiRestClient)\n\u003e\u003e\u003e help(HuobiRestClient.symbols)\n```\n\n### Real Time API\n\n\u003e Rudimentary websocket subscription support\n\nPlease refer to Huobi's documentation for available subscribe channels.\n\nIf callback is not a coroutine function, run_in_executor with default\nExecutor will be called.\n\nExample:\n```python\nfrom huobi import subscribe\n\u003e\u003e\u003e def btc_callback(data):\n        print(data)\n\u003e\u003e\u003e async def eth_callback(data):\n        print(data)\n\u003e\u003e\u003e task = subscribe({\n        'market.btcusdt.kline.1min': {\n            'callback': btc_callback\n        },\n        'market.ethusdt.kline.1min': {\n            'callback': eth_callback\n        },\n    })\n\u003e\u003e\u003e asyncio.get_event_loop().run_until_complete(task)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericls%2Fhuobi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericls%2Fhuobi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericls%2Fhuobi/lists"}