APIError(code=-2015):无效的api密钥、IP或使用币安提现的操作权限


def withdraw():
try:
# name parameter will be set to the asset value by the client if not passed
result = client.withdraw(
coin='TRX',
address='<my trx address>',
amount=100)
print(result)
except BinanceAPIException as e:
print(e)
else:
print("Success")

所以在执行上面的方法后,我得到一个错误作为APIError(code=-2015): Invalid API-key, IP, or permissions for action.我已经为我的API密钥启用了提取权限,还在binance帐户的受限地址中添加了IP地址,仍然得到此错误,不确定确切的问题在哪里。

所以现在我已经在Binance API密钥管理的'限制仅访问可信IP(推荐)'列中添加了我的公共IP地址,并且它正在按预期工作

最新更新