Name | ks_futu_market_api JSON |
Version |
0.0.41
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-11-07 06:23:38 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# binance_api
异常排查
```
发生异常: TypeError
BinanceWebsocketClient.__init__() got an unexpected keyword argument 'timeout'
File "D:\GD\binance\binance_api\trade.py", line 102, in init_handlers
setattr(self, f'{socket_client_names[security_type]}_trade', globals()[socket_client_methods[security_type]](on_message=message_callback_factory(on_message_trade, security_type)))
File "D:\GD\binance\binance_api\trade.py", line 29, in __init__
self.init_handlers(api_key=api_key, api_secret=api_secret, security_types=security_types)
File "D:\GD\binance\main.py", line 167, in <module>
main_trade = MainTrade(API_KEY, API_SECRET)
TypeError: BinanceWebsocketClient.__init__() got an unexpected keyword argument 'timeout'
```
原因:future的BinanceWebsocketClient库和spot的BinanceWebsocketClient库不一样,spot的可以兼容future,需要先安装future再安装spot,如果顺序不一致,需要先卸载spot在安装spot
Raw data
{
"_id": null,
"home_page": null,
"name": "ks_futu_market_api",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "liuyanzhi08 <702368372@qq.com>",
"download_url": "https://files.pythonhosted.org/packages/ec/06/6a7e5fcafdf69ad31209fea25d9757be7104b932aeac83b0090c507aebc0/ks_futu_market_api-0.0.41.tar.gz",
"platform": null,
"description": "# binance_api\n\n\u5f02\u5e38\u6392\u67e5\n\n```\n\u53d1\u751f\u5f02\u5e38: TypeError\nBinanceWebsocketClient.__init__() got an unexpected keyword argument 'timeout'\n File \"D:\\GD\\binance\\binance_api\\trade.py\", line 102, in init_handlers\n setattr(self, f'{socket_client_names[security_type]}_trade', globals()[socket_client_methods[security_type]](on_message=message_callback_factory(on_message_trade, security_type)))\n File \"D:\\GD\\binance\\binance_api\\trade.py\", line 29, in __init__\n self.init_handlers(api_key=api_key, api_secret=api_secret, security_types=security_types)\n File \"D:\\GD\\binance\\main.py\", line 167, in <module>\n main_trade = MainTrade(API_KEY, API_SECRET)\nTypeError: BinanceWebsocketClient.__init__() got an unexpected keyword argument 'timeout'\n```\n\n\u539f\u56e0\uff1afuture\u7684BinanceWebsocketClient\u5e93\u548cspot\u7684BinanceWebsocketClient\u5e93\u4e0d\u4e00\u6837\uff0cspot\u7684\u53ef\u4ee5\u517c\u5bb9future\uff0c\u9700\u8981\u5148\u5b89\u88c5future\u518d\u5b89\u88c5spot\uff0c\u5982\u679c\u987a\u5e8f\u4e0d\u4e00\u81f4\uff0c\u9700\u8981\u5148\u5378\u8f7dspot\u5728\u5b89\u88c5spot\n",
"bugtrack_url": null,
"license": null,
"summary": null,
"version": "0.0.41",
"project_urls": {
"Documentation": "https://github.com/unknown/ks-binance-api#readme",
"Issues": "https://github.com/unknown/ks-binance-api/issues",
"Source": "https://github.com/unknown/ks-binance-api"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e8a397e14460ba10ae22bb23a848f0f4d338f6f27b3476aec1213c7aef8e0fe3",
"md5": "da3fb200a3b50189ace74a6302c9041d",
"sha256": "820edb953d0df0e40a90333bb83b1692c953046292f06c6eb7d5ab29c5e15d27"
},
"downloads": -1,
"filename": "ks_futu_market_api-0.0.41-py3-none-any.whl",
"has_sig": false,
"md5_digest": "da3fb200a3b50189ace74a6302c9041d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 15355,
"upload_time": "2024-11-07T06:23:37",
"upload_time_iso_8601": "2024-11-07T06:23:37.252730Z",
"url": "https://files.pythonhosted.org/packages/e8/a3/97e14460ba10ae22bb23a848f0f4d338f6f27b3476aec1213c7aef8e0fe3/ks_futu_market_api-0.0.41-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ec066a7e5fcafdf69ad31209fea25d9757be7104b932aeac83b0090c507aebc0",
"md5": "a5a3f17f0a73b48d1df753aa93061347",
"sha256": "b7507f250f0f0b41e242b63dffe48761c5e973253d8c81ecf19767c4effb9b68"
},
"downloads": -1,
"filename": "ks_futu_market_api-0.0.41.tar.gz",
"has_sig": false,
"md5_digest": "a5a3f17f0a73b48d1df753aa93061347",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 10754,
"upload_time": "2024-11-07T06:23:38",
"upload_time_iso_8601": "2024-11-07T06:23:38.995446Z",
"url": "https://files.pythonhosted.org/packages/ec/06/6a7e5fcafdf69ad31209fea25d9757be7104b932aeac83b0090c507aebc0/ks_futu_market_api-0.0.41.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-07 06:23:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "unknown",
"github_project": "ks-binance-api#readme",
"github_not_found": true,
"lcname": "ks_futu_market_api"
}