country Brazil
I tried to connect using the API using the library node-binance-api and also the cctx library for javascript. For both of them I get:
{"code":-2015,"msg":"Invalid API-key, IP, or permissions for action."}
So the error is related to the test server. It is a new account and I am new at market currency. I just copy and paste the key and the secret from the API section in the bottom of the test dashboard. Is anything I need to do like activate the API?
I must ask. I think this is a different account from the futures test api https://testnet.binancefuture.com/
… where is the dashboard of this new account ?
where I can buy and sold with this account?
Also, how can I test future API if the already registered account’s keys from there don’t work
I am sorry for the silly question… I am really new at this.
thanks again for the response. it saves me a lot of time. But How can access to the future API that was the first reason that brings me here… I have registered an account in the future testnet, I am using the API key automatically created in the dashboard and I get the invalid key error. Now I can connect to the spot/margin API thanks to you, but how connect to the future testnet API where I have already an account?
I got this now. I was incorrectly use both codes for futures
in the cctx case I need to ask for the balance in the future API explicitly since the default type is “spot”
let balance = await exchange.fetchBalance({
type: ‘future’
})