资源加载中... loading...

OKCoin查询提币费用出错

Author: sorjor, Created: 2018-11-04 22:13:09, Updated: 2019-04-17 16:37:01

37 fee = exchange[1].IO(“api”,“GET”,"/api/account/v3/withdrawal/fee",“currency=btc”) #提币操作
39 tb = exchanges[1].IO(‘api’,‘POST’,’/api/account/v3/withdrawal’,‘currency=BTC&destination=’+‘4’ +‘&amount=1’+’&to_address=’+address+’&trade_pwd=xxxxxxxxx&fee=’+fee)

报错信息:line 37, in getInfo AttributeError: ooOooo000oOO instance has no attribute ‘getitem

麻烦大家看看程序是否有问题


More

发明者量化-小小梦 fee = exchange[1] , 注意, 交易所对象数组是 exchanges , 您少写了个 s 。 参看API 文档。