JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.04k stars 428 forks source link

Switch to test API #768

Closed DragonDara closed 3 years ago

DragonDara commented 3 years ago

Is there any possibility to switch to Test API https://testnet.binance.vision/api??

JKorf commented 3 years ago

Yes, using the latest beta release you can switch like so: BinanceClient.SetDefaultOptions(new BinanceClientOptions(BinanceApiAddresses.TestNet)) Using an earlier version you can set the api address like so:

BinanceClient.SetDefaultOptions(new BinanceClientOptions()
{
    BaseAddress = "https://testnet.binance.vision/"
});