vnpy_binance icon indicating copy to clipboard operation
vnpy_binance copied to clipboard

response:{"code":-5000,"msg":"GET /fapi/v1/account is retired, please use GET /fapi/v2/account"}

Open JasonXZh opened this issue 1 year ago • 2 comments

response:{"code":-5000,"msg":"GET /fapi/v1/account is retired, please use GET /fapi/v2/account"}

JasonXZh avatar Aug 16 '23 17:08 JasonXZh

我这边也是这个问题,币安那边有更新了吧

linhertz avatar Aug 29 '23 15:08 linhertz

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

p0wx avatar Sep 04 '23 10:09 p0wx

Please try the latest version 2024.3.12:

https://github.com/veighna-global/vnpy_binance/releases/tag/2024.3.12

veighna-global avatar Apr 15 '24 02:04 veighna-global