public WebsocketClient(Network network) { var networkEnv = BinanceEnvironment.GetEnvironment(network); _ws = new WebSocket(networkEnv.WssApiAddress); _ws.SslConfiguration.EnabledSslProtocols = System.Security.Authentication.SslProtocols.Tls12; _ws.EmitOnPing = true; _ws.OnMessage += _ws_OnMessage; _ws.OnError += _ws_OnError; BlockHeight = new BlockHeight(this); AllMiniTicker = new AllMiniTicker(this); IndividualMiniTicker = new IndividualMiniTicker(this); AllTicker = new AllTicker(this); IndividualTicker = new IndividualTicker(this); Klines = new Klines(this); BookDepth = new BookDepth(this); DiffDepth = new DiffDepth(this); Trades = new Trades(this); Transfer = new Transfer(this); Account = new Account(this); Orders = new Orders(this); }
public HTTPClient(Network environment, bool requestThrottling = true) { _env = BinanceEnvironment.GetEnvironment(environment); RequestThrottling = requestThrottling; }