No project description provided
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ks_qmt_market_api-0.0.1.tar.gz
.
File metadata
- Download URL: ks_qmt_market_api-0.0.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56ff73b2af4958f228cfc30c736d04b4efc848550c8ea4678d9b65c8fae73e10 |
|
MD5 | afc9d98307685071d7df78fc80e3326e |
|
BLAKE2b-256 | 4f8896809f3bd359546a8275131ea697e344ff9c38b79f427ccaed749ef80656 |
File details
Details for the file ks_qmt_market_api-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ks_qmt_market_api-0.0.1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3683589cde43fe69017e6526d7705f425c4914d6e8e9962aa6e2930cf829bb1 |
|
MD5 | 4a9270f09607f054b47928416928bd01 |
|
BLAKE2b-256 | dd5f10af0bdc9bfcfc3a5b897a2214f396ef6da2d35df8f61696804fe2d76e9e |