burakoner / OKEx.Net

Open source .Net API wrapper for the @OKEx V5 Rest API and V5 Websocket API
MIT License
86 stars 48 forks source link

use demo api #56

Closed overstartup closed 2 years ago

overstartup commented 2 years ago

I have tried to connect to demo API, but it doesn't work, there is configuration I have to set?

Even i created new API but still i get this error: 50101: Broker id of APIKey does not match current environment.

gunduzemreozer commented 2 years ago

You can use with client options as below.

OkexClient api = new OkexClient(new Okex.Net.CoreObjects.OkexRestClientOptions
{
    DemoTradingService = true
});