gateio / gateapi-python

250 stars 93 forks source link

USER_NOT_FOUND on the testnet #138

Closed LKresta closed 2 years ago

LKresta commented 2 years ago

Hello there, I'm testing getting all positions using https://fx-api-testnet.gateio.ws/api/v4 and I'm getting USER_NOT_FOUND as a response. I'm querying /futures/usdt/positions in particular and per 'my account' ("Classic account" -> "Contract account" -> "Futures" ) I have funds available there (USDT 'available balance' > 0).

Should this work on testnet? If so, could you please advise as to where to transfer funds to make this work on testnet?

Thanks, L.

revilwang commented 2 years ago

You need to perform transferals on futures testnet web entry, create APIv4 futures TESTNET key, and then access fx-api-testnet using your TESTNET key pair.

LKresta commented 2 years ago

Thanks for the response. I do have TESTNET key pair: created on https://www.gate.io/myaccount/apiv4keys - I have the "Testnet APIv4 Keys" section there. So far so good. But I was unable to find anything TESTNET-related in transferrals area. Can you clarify what do you mean by futures testnet web entry/pass a link?

revilwang commented 2 years ago

Click the funds transfer button shown in the picture. You can add at most 1000 USDT to your testnet account per day.

image
LKresta commented 2 years ago

Splendid! Found it, transferred stuff, got it working. Thanks a lot!!