ViewBlock / binance-api-node

:chart: A complete and heavily tested wrapper with typings for the Binance API.
657 stars 502 forks source link

Error: Invalid API-key, IP, or permissions for action. #656

Open Dzielinski93 opened 7 months ago

Dzielinski93 commented 7 months ago

After putting Api key and secret from https://testnet.binancefuture.com/ I am constantly getting this error "Error: Invalid API-key, IP, or permissions for action.". Anyone can help me with this?

thucdev commented 6 months ago

i have the same issuse with future testnet

tamdc commented 5 months ago

you can put the testnet endpoint in the init config. For example:

Binance({
  apiKey: process.env.BINANCE_API_KEY,
  apiSecret: process.env.BINANCE_SECRET_KEY,
  httpFutures: 'https://testnet.binancefuture.com',
  wsFutures: 'wss://fstream.binancefuture.com',
})