Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

正常用了几年了,今天突然出现调用任何接口都引发“KeyError('code')”的异常 #14

Open
JepheusZhong opened this issue Jun 24, 2024 · 7 comments

Comments

@JepheusZhong
Copy link

正常用了几年了,今天突然出现调用任何接口都引发“KeyError('code')”的异常
如account.get_balance()和public.get_instruments(instType="SWAP")

@ikeoo-max
Copy link

有大佬找到解决方案了吗?

@pyted
Copy link
Owner

pyted commented Jul 29, 2024

最近项目比较忙,框架我会在8月内再次测试更新

@ntsmzt
Copy link

ntsmzt commented Aug 23, 2024

我也遇到异常了。url: /api/v5/account/balance?ccy=USDT
{'msg': 'Timestamp request expired', 'code': '50102'}

@ntsmzt
Copy link

ntsmzt commented Aug 23, 2024

查看USDT余额

balance_result = accountAPI.get_account_balance(ccy='USDT')
eprint(balance_result, length=20)
这个函数

@86maid
Copy link

86maid commented Sep 26, 2024

如果是 Windows,点击右下角的时间,点击同步时间就行

@86maid
Copy link

86maid commented Sep 26, 2024

就是本地时间戳和服务器时间戳误差太大导致的

@ntsmzt
Copy link

ntsmzt commented Oct 31, 2024

如果是 Windows,点击右下角的时间,点击同步时间就行

我再linux上用的,时间同步试过,但是也不行。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants