using Newtonsoft.Json;
using ShareInvest.Binance;
using ShareInvest.Binance.Models;
IEnumerable<Ticker> tickers;
using (var api = new Quotation())
{
tickers = await api.GetEntireDayTickerAsync() ?? [];
}
using (var socket = new WebSocket())
{
socket.SendTicker += (sender, e) =>
{
Console.WriteLine(JsonConvert.SerializeObject(e.Ticker, Formatting.Indented));
};
await socket.ConnectAsync();
var task = Task.Run(socket.ReceiveAsync);
await socket.RequestAsync("SUBSCRIBE", "!ticker@arr");
await task;
}
-
Notifications
You must be signed in to change notification settings - Fork 1
cyberprophet/Binance
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Releases
No releases published
Packages 0
No packages published