-
Notifications
You must be signed in to change notification settings - Fork 77
Connectivity
sonvister edited this page Mar 14, 2018
·
4 revisions
NOTE: C# 7.1 is required for async Main()
(set language version in project advanced build properties).
var successful = await api.PingAsync();
Sample console application example.
Reference: Binance Official API
var time = await api.GetTimeAsync(); // UTC date/time.
var timestamp = await api.GetTimestampAsync(); // Unix time milliseconds.
Sample console application example.
Reference: Binance Official API
Get system status.
var status = await api.GetSystemStatusAsync();
Sample console application example.
Reference: Binance Official API
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
- Verify connection to the Binance server (minimal examples).
- Get the market depth (order book) for a symbol.
- Maintain a real-time order book cache for a symbol.
- Get the aggregate trades for a symbol.
- Maintain a real-time trade history cache for a symbol.
- Get the candlesticks for a symbol.
- Maintain a real-time price chart cache for a symbol.
- Get the 24-hour statistics for a symbol.
- Get current prices for all symbols for a price ticker.
- Get best price and quantity on the order book for all symbols.
- Get a list of all current symbols.
- Place a LIMIT order.
- Place a MARKET order.
- Place a TEST order to verify client order properties.
- Look-up an existing order to check status.
- Cancel an open order.
- Get all open orders for a symbol.
- Get all orders for a symbol.
- Get current account information.
- Get account trades for a symbol.
- Submit a withdraw request.
- Get deposit history.
- Get withdraw history.
- Donate BTC to the creator of this library.