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
ks_futu_market_api-0.0.32.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for ks_futu_market_api-0.0.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 381ad1f4e7820229b6e229ebcca50f522c4afa616cb2c99b2877d6ace9120fd4 |
|
MD5 | 4399dc7eaf067e67a16760bb4bfb0ae5 |
|
BLAKE2b-256 | e918e082335997d6a320fdc45f824d5efb7e6138a4cc8e44cdeeedb85718daa4 |
Close
Hashes for ks_futu_market_api-0.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56935a8f972ec5ffa43e8016f0fc392940868944aefd48ae4d38fd50742bd9e3 |
|
MD5 | bf7046556a7febc07e1537c28e833737 |
|
BLAKE2b-256 | 212233948272f56d5e1258bd57326491aa32d7f9a9ab5916c9821786510b243a |