-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathAccountUpdatedMessage.cs
More file actions
40 lines (39 loc) · 1.23 KB
/
AccountUpdatedMessage.cs
File metadata and controls
40 lines (39 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Binance.API.Csharp.Client.Models.WebSocket
{
public class AccountUpdatedMessage
{
[JsonProperty("e")]
public string EventType { get; set; }
[JsonProperty("E")]
public long EventTime { get; set; }
[JsonProperty("m")]
public int MakerCommission { get; set; }
[JsonProperty("t")]
public int TakerCommission { get; set; }
[JsonProperty("b")]
public int BuyerCommission { get; set; }
[JsonProperty("s")]
public int SellerCommission { get; set; }
[JsonProperty("T")]
public bool CanTrade { get; set; }
[JsonProperty("W")]
public bool CanWithdraw { get; set; }
[JsonProperty("D")]
public bool CanDeposit { get; set; }
[JsonProperty("u")]
public long TimeLastAccountUpdate { get; set; }
[JsonProperty("B")]
public IEnumerable<Balance> Balances { get; set; }
}
public class Balance
{
[JsonProperty("a")]
public string Asset { get; set; }
[JsonProperty("f")]
public decimal Free { get; set; }
[JsonProperty("l")]
public decimal Locked { get; set; }
}
}