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密钥启用了取款权限,还在二进制帐户中的受限地址中添加了IP地址,但仍然得到此错误,不确定确切的问题在哪里。
发布于 2022-06-04 13:45:40
因此,现在我在Binance API密钥管理的“仅限访问受信任的IP (推荐)”一栏中添加了我的公共IP地址,它正在按预期工作。
https://stackoverflow.com/questions/72424717
复制相似问题