test net secret and api key

hi,

Everything is working fine for me using prod/live network to get historical data and get trades since a specific trade ID. However now I need to switch over to binance testnet… as we’re testing trading and obviously cant trade with real network during dev cycle.

We currently download historical trades from

https://data.binance.vision/data/spot/daily/trades/

The we get all trades since midnight up until now. When I try to get these trades (in batches of 1000, and it works on production/live network), I now get this using the demo keys;

response [{‘code’: -2015, ‘msg’: ‘Invalid API-key, IP, or permissions for action.’}]

Not sure where/how I validate the test net new keys I have generated for test net (Im using newly generated keys instead of the old “production” ones). I’ve done all this for production, but not sure how to proceed using testnet. Can anybody help? Im finding the documentation for test net quite confusing.

Have I missed a step after generating and using the keys as described here? I simply use these ones instead of the production/live network ones. I’ve obviously missed a step.

https://testnet.binance.vision/

thanks much,

Graham

Hi. Could you help checking the keys again? Here are some possible reasons that cause the error.