jaggedsoft / node-binance-api

Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.
MIT License
1.58k stars 768 forks source link

node-binance-api-testnet - binance.openOrder(false, (error, openOrders) => ... throwing Invalid API Key for testnet #787

Open christopherreay opened 2 years ago

christopherreay commented 2 years ago

for that APIKEY and APISECRET, I can get read data sockets for everything, for the testnet data, When I call binance.openOrders(false, (error, openOrders) =>...

error = 
{
 aborted: false,
 body: "{\"code\":-2015,\"msg\":\"Invalid API-key, IP, or permissions for action.\"}",
 caseless: Caseless {dict: {…}},
 client: TLSSocket {_tlsOptions: {…}, _secureEstablished: true, _securePending: false, _newSessionPending: false, 
 _controlReleased: true, …},
 complete: true,
 httpVersion: "1.1",
 httpVersionMajor: 1,
 httpVersionMinor: 1,
"...": "..."
}

openOrders = {};

there are currently no open orders (I havent yet tried to open any openOrders is {}

christopherreay commented 2 years ago

Ive tried generating a brand new HMAC from the website, and the same thing is still happening

christopherreay commented 2 years ago

can confirm that same code works on the mainnet

and also that if I use the node-binance-api library, with the testnet credentials, this also does not work,

esuarezz commented 2 years ago

is this library working?

christopherreay commented 2 years ago

it's years out of date. find the official binance one. it's a bit of apita.

I've stopped using binance because their customer service and support is just... big business lazy rubbish

On Mon, 7 Mar 2022, 22:57 Elio Suárez Santana, @.***> wrote:

is this library working?

— Reply to this email directly, view it on GitHub https://github.com/jaggedsoft/node-binance-api/issues/787#issuecomment-1061225206, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB2PPWQATHJG3WTRWJIU23U62CVBANCNFSM5LQ6Q5FQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>