Skip to content

Connectivity

sonvister edited this page Mar 14, 2018 · 4 revisions

Minimal Examples

  • Minimal with dependency injection (recommended).
  • Minimal without dependency injection.

NOTE: C# 7.1 is required for async Main() (set language version in project advanced build properties).

Ping

var successful = await api.PingAsync();

Sample console application example.

Reference: Binance Official API

Server Time

var time = await api.GetTimeAsync(); // UTC date/time.
var timestamp = await api.GetTimestampAsync(); // Unix time milliseconds.

Sample console application example.

Reference: Binance Official API

System (Binance Exchange) Status

Get system status.

var status = await api.GetSystemStatusAsync();

Sample console application example.

Reference: Binance Official API

Exchange Info

Get rate limit information.

var rateLimitInfo = await api.GetRateLimitInfoAsync();

NOTE: The remaining exchange information is incorporated into the static Asset and Symbol definitions, which can be updated with Symbol.UpdateCacheAsync(api).

Reference: Binance Official API