OKCoin asked for a token fee error

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) #Ticket operation
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)

Error message: line 37, in getInfo AttributeError: ooOooo000oOO instance has no attribute getitem

The problem is that people are trying to see if there is a problem with the program.


More

The Little Dreamfee = exchange[1], Note that the array of exchange objects is exchanges, you write an s less. See API documentation.