Closed PasKemp closed 2 years ago
I got this error also.
I have fixed this with an other Object. I want to get my balance from Gate.io with the WalletApi. With that the 'Total_balance' Object returned. In the picture you can see how you get the amount of your spot balance.
But i didn't find a solution for the 'Order' Object yet.
It was actually this error that came first for me. The non subscriptable error came after restarting the script. Something to do with the parsing of the coin symbols I assume.
New annoucement detected: TBLVKJIWJRPRJYQXXAIOVUSZIEVPXW Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/gate_api/api_client.py", line 190, in __call_api response_data = self.request( File "/usr/local/lib/python3.9/site-packages/gate_api/api_client.py", line 447, in request return self.rest_client.GET( File "/usr/local/lib/python3.9/site-packages/gate_api/rest.py", line 237, in GET return self.request( File "/usr/local/lib/python3.9/site-packages/gate_api/rest.py", line 232, in request
gate_api.exceptions.ApiException: (400) Reason: Bad Request HTTP response headers: HTTPHeaderDict({'Date': 'Fri, 22 Oct 2021 02:37:21 GMT', '......... HTTP response body: {"label":"INVALID_CURRENCY","message":"Invalid currency TBLVKJIWJRPRJYQXXAIOVUSZIEVPXW"}
Did you know that the "quantity" is not the amount in dollars but the price of the announced currency?
I'm getting a TypeError from the 'Order' object wich is returned by Gate.io Api.
Traceback (most recent call last): File "E:/Entwicklung/binanceListingTradingbot/main.py", line 63, in main stored_price = float(order[coin]['price']) TypeError: 'Order' object is not subscriptable