Binance.us API Delphi and .NET

From sgcWebSockets 2022.1, the Binance.us Servers are supported by our Binance API Client. The following APIs are supported:

  1. WebSocket streams: allows to subscribe to some methods and get data in real-time. Events are pushed to clients by server to subscribers. Uses WebSocket as protocol.
  2. UserData stream: subscribed clients get account details. Requires an API key to authenticate and uses WebSocket as protocol.
  3. REST API: clients can request to server market and account data. Requires an API Key and Secret to authenticate and uses HTTPs as protocol.

Configuration 

There is a new property in Binance property called "BinanceUS", if enabled, the client will connect to Binance.us servers instead of Binance.com servers

Delphi

oClient := TsgcWebSocketClient.Create(nil);

oBinance := TsgcWSAPI_Binance.Create(nil);
oBinance.Binance.BinanceUS := True;
oBinance.Client := oClient;

oClient.Active := True; 

.NET 

TsgcWebSocketClient oClient = new TsgcWebSocketClient();

TsgcWSAPI_Binance oBinance = new TsgcWSAPI_Binance();
oBinance.Binance.BinanceUS := true;
oBinance.Client = oClient;

oClient.Active = true; 
×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

sgcWebSockets 2022.1.0
Bitmex Delphi Client Updated

Related Posts