ks_futu_market_api


Nameks_futu_market_api JSON
Version 1.0.16 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2025-07-24 02:37:39
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
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/7b/03/4fe0e726c46c3c9a82c1508b3b20bd63e1c0a1ce700d075bf7824cef59e8/ks_futu_market_api-1.0.16.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": "1.0.16",
    "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": "41fa3dc86854dac6eda92993f8b9784d095e9cc2efa5e9a9b2f431df601e96c0",
                "md5": "477ca446dd675368453871e52e41326f",
                "sha256": "141ab346120c58ae244fb6724c2fb54166fb94d10eee22ee7a2fbef3b3dce1cb"
            },
            "downloads": -1,
            "filename": "ks_futu_market_api-1.0.16-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "477ca446dd675368453871e52e41326f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 17980,
            "upload_time": "2025-07-24T02:37:37",
            "upload_time_iso_8601": "2025-07-24T02:37:37.930941Z",
            "url": "https://files.pythonhosted.org/packages/41/fa/3dc86854dac6eda92993f8b9784d095e9cc2efa5e9a9b2f431df601e96c0/ks_futu_market_api-1.0.16-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7b034fe0e726c46c3c9a82c1508b3b20bd63e1c0a1ce700d075bf7824cef59e8",
                "md5": "167aba6d0faa1bdfe8d184e8e107a02e",
                "sha256": "9ec48238ba5408c7c7f0216d269d831981602ffe252682c05585f92e718a5ab5"
            },
            "downloads": -1,
            "filename": "ks_futu_market_api-1.0.16.tar.gz",
            "has_sig": false,
            "md5_digest": "167aba6d0faa1bdfe8d184e8e107a02e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 13415,
            "upload_time": "2025-07-24T02:37:39",
            "upload_time_iso_8601": "2025-07-24T02:37:39.260934Z",
            "url": "https://files.pythonhosted.org/packages/7b/03/4fe0e726c46c3c9a82c1508b3b20bd63e1c0a1ce700d075bf7824cef59e8/ks_futu_market_api-1.0.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-24 02:37:39",
    "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"
}
        
Elapsed time: 0.37902s