42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace WebSocket.Clients
|
|
{
|
|
public class Summary : Command
|
|
{
|
|
public string e { get; set; }
|
|
public SummaryData data { get; set; }
|
|
}
|
|
|
|
public class SummaryData
|
|
{
|
|
[JsonProperty("pair", NullValueHandling = NullValueHandling.Ignore)]
|
|
public string Pair { get; set; }
|
|
[JsonProperty("o", NullValueHandling = NullValueHandling.Ignore)]
|
|
public decimal OpenPrice { get; set; }
|
|
[JsonProperty("c", NullValueHandling = NullValueHandling.Ignore)]
|
|
public decimal ClosePrice { get; set; }
|
|
[JsonProperty("h", NullValueHandling = NullValueHandling.Ignore)]
|
|
public decimal HighPrice { get; set; }
|
|
[JsonProperty("l", NullValueHandling = NullValueHandling.Ignore)]
|
|
public decimal LowPrice { get; set; }
|
|
[JsonProperty("v", NullValueHandling = NullValueHandling.Ignore)]
|
|
public decimal Volume { get; set; }
|
|
[JsonProperty("time", NullValueHandling = NullValueHandling.Ignore)]
|
|
public DateTime TimeStamp { get; set; }
|
|
//{"e":"ohlcv1m",
|
|
//"data":
|
|
// {"pair":"BTC:USD",
|
|
// "time":"1527604740",
|
|
// "o":"7505.3",
|
|
// "h":"7505.3",
|
|
// "l":"7505.3",
|
|
// "c":"7505.3",
|
|
// "v":1245120,
|
|
// "d":1245120}}
|
|
}
|
|
}
|