ViewBlock / binance-api-node

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

Have an option to init client with TestNet endpoints #297

Closed quasifin closed 3 years ago

quasifin commented 3 years ago

It would be nice to have an option when initializing the client to set the API to the TestNet endpoints instead of the production API.

// Authenticated client, can make signed calls const client2 = Binance({ apiKey: 'xxx', apiSecret: 'xxx', getTime: xxx, apiEndpoints: 'TestNet' // defaults to 'production' })

jorisw commented 3 years ago

Would be fixed by #278 and/or #283

balthazar commented 3 years ago

Available since 0.10.26