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
Release history Release notifications | RSS feed
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
Close
Hashes for ks_longport_trade_api-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6beefaca3281aa46866a4458012dfd78d917aa1adbc7010cb65c96dc489943d1 |
|
MD5 | dfdf2ab0e5c0e7d948708d9b43e73172 |
|
BLAKE2b-256 | 00976b95e4a40fc053df5e6ad9f4aa73be31ecef46bee484398a26ac2e47d095 |
Close
Hashes for ks_longport_trade_api-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b57e7b23a40051cfb5226c5150734b7cef7a1ef4d7f62b35f2ca6463e5a8895 |
|
MD5 | b269ce686fcfc794d8215d8171533379 |
|
BLAKE2b-256 | 89998dce53b7766e0d6518251df87c1eb5835b9161de8276610e473a883e687d |