vnpy_binance
vnpy_binance copied to clipboard
response:{"code":-5000,"msg":"GET /fapi/v1/account is retired, please use GET /fapi/v2/account"}
response:{"code":-5000,"msg":"GET /fapi/v1/account is retired, please use GET /fapi/v2/account"}
我这边也是这个问题,币安那边有更新了吧
I just override methods and using like this:
def query_account(self) -> None:
"""查询资金"""
data: dict = {"security": Security.SIGNED}
path: str = "/fapi/v2/account"
self.add_request(
method="GET", path=path, callback=self.on_query_account, data=data
)
Solution:
Change /fapi/v1/positionRisk
-> /fapi/v2/positionRisk
and /fapi/v1/account
-> /fapi/v2/account
Please try the latest version 2024.3.12:
https://github.com/veighna-global/vnpy_binance/releases/tag/2024.3.12