Language: Python Exchange: ftx Code: account =exchange.IO("api",“GET”,"/api/account") balance = exchange.IO("api",“GET”,"/api/wallet/balances") position = exchange.IO("api",“GET”,"/api/positions")
The code uses a private interface and can return data normally. The fields of the returned data are identical to the documentation in the ftx api.
But the format of the return is like this, please tell me how this happened?
The grassIt returns a dictionary structure that needs to be converted into a string to print.