Skip to content

Commit 416579a

Browse files
committed
Added json field names to model properties xml comments
1 parent ba27e0a commit 416579a

118 files changed

Lines changed: 1091 additions & 1091 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Text.Json.Serialization;
1+
using System.Text.Json.Serialization;
22

33
namespace Bitget.Net.Objects.Models
44
{
@@ -8,17 +8,17 @@ namespace Bitget.Net.Objects.Models
88
public record BitgetOrderResult
99
{
1010
/// <summary>
11-
/// Order id
11+
/// ["<c>orderId</c>"] Order id
1212
/// </summary>
1313
[JsonPropertyName("orderId")]
1414
public string? OrderId { get; set; } = string.Empty;
1515
/// <summary>
16-
/// Client order id
16+
/// ["<c>clientOrderId</c>"] Client order id
1717
/// </summary>
1818
[JsonPropertyName("clientOrderId")]
1919
public string? ClientOrderId { get; set; }
2020

2121
[JsonPropertyName("clientOid")]
2222
internal string? IntClientOrderId { get => ClientOrderId; set => ClientOrderId = value; }
2323
}
24-
}
24+
}

Bitget.Net/Objects/Models/BitgetResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CryptoExchange.Net.Converters.SystemTextJson;
1+
using CryptoExchange.Net.Converters.SystemTextJson;
22
using System.Text.Json.Serialization;
33

44
namespace Bitget.Net.Objects.Models
@@ -18,4 +18,4 @@ internal record BitgetResponse<T> : BitgetResponse
1818
[JsonPropertyName("data")]
1919
public T? Data { get; set; }
2020
}
21-
}
21+
}

Bitget.Net/Objects/Models/V2/BitgetAccountInfo.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,47 @@ namespace Bitget.Net.Objects.Models.V2
1010
public record BitgetAccountInfo
1111
{
1212
/// <summary>
13-
/// User id
13+
/// ["<c>userId</c>"] User id
1414
/// </summary>
1515
[JsonPropertyName("userId")]
1616
public string UserId { get; set; } = string.Empty;
1717
/// <summary>
18-
/// User id of the user who invited
18+
/// ["<c>inviterId</c>"] User id of the user who invited
1919
/// </summary>
2020
[JsonPropertyName("inviterId")]
2121
public string? InviterId { get; set; }
2222
/// <summary>
23-
/// IP whitelist
23+
/// ["<c>ips</c>"] IP whitelist
2424
/// </summary>
2525
[JsonPropertyName("ips")]
2626
public string? IpWhitelist { get; set; }
2727
/// <summary>
28-
/// Premissions list
28+
/// ["<c>authorities</c>"] Premissions list
2929
/// </summary>
3030
[JsonPropertyName("authorities")]
3131
public string[] Permissions { get; set; } = Array.Empty<string>();
3232
/// <summary>
33-
/// Main account id
33+
/// ["<c>parentId</c>"] Main account id
3434
/// </summary>
3535
[JsonPropertyName("parentId")]
3636
public long ParentId { get; set; }
3737
/// <summary>
38-
/// Account type
38+
/// ["<c>traderType</c>"] Account type
3939
/// </summary>
4040
[JsonPropertyName("traderType")]
4141
public string TraderType { get; set; } = string.Empty;
4242
/// <summary>
43-
/// Affiliate referral code
43+
/// ["<c>channelCode</c>"] Affiliate referral code
4444
/// </summary>
4545
[JsonPropertyName("channelCode")]
4646
public string ReferralCode { get; set; } = string.Empty;
4747
/// <summary>
48-
/// Affiliate
48+
/// ["<c>channel</c>"] Affiliate
4949
/// </summary>
5050
[JsonPropertyName("channel")]
5151
public string Affiliate { get; set; } = string.Empty;
5252
/// <summary>
53-
/// Registration time
53+
/// ["<c>regisTime</c>"] Registration time
5454
/// </summary>
5555
[JsonPropertyName("regisTime")]
5656
public DateTime RegistrationTime { get; set; }

Bitget.Net/Objects/Models/V2/BitgetAdlNotification.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,37 @@ namespace Bitget.Net.Objects.Models.V2
1010
public record BitgetAdlNotification
1111
{
1212
/// <summary>
13-
/// Symbol
13+
/// ["<c>instId</c>"] Symbol
1414
/// </summary>
1515
[JsonPropertyName("instId")]
1616
public string Symbol { get; set; } = string.Empty;
1717

1818
/// <summary>
19-
/// Side
19+
/// ["<c>side</c>"] Side
2020
/// </summary>
2121
[JsonPropertyName("side")]
2222
public OrderSide Side { get; set; }
2323

2424
/// <summary>
25-
/// Status
25+
/// ["<c>status</c>"] Status
2626
/// </summary>
2727
[JsonPropertyName("status")]
2828
public string Status { get; set; } = string.Empty;
2929

3030
/// <summary>
31-
/// Price
31+
/// ["<c>price</c>"] Price
3232
/// </summary>
3333
[JsonPropertyName("price")]
3434
public decimal Price { get; set; }
3535

3636
/// <summary>
37-
/// Quantity
37+
/// ["<c>amount</c>"] Quantity
3838
/// </summary>
3939
[JsonPropertyName("amount")]
4040
public decimal Quantity { get; set; }
4141

4242
/// <summary>
43-
/// Timestamp
43+
/// ["<c>ts</c>"] Timestamp
4444
/// </summary>
4545
[JsonPropertyName("ts")]
4646
public DateTime Timestamp { get; set; }

Bitget.Net/Objects/Models/V2/BitgetAnnouncement.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Bitget.Net.Enums;
1+
using Bitget.Net.Enums;
22
using System.Text.Json.Serialization;
33

44
namespace Bitget.Net.Objects.Models.V2
@@ -9,44 +9,44 @@ namespace Bitget.Net.Objects.Models.V2
99
public record BitgetAnnouncement
1010
{
1111
/// <summary>
12-
/// Announcement id
12+
/// ["<c>annId</c>"] Announcement id
1313
/// </summary>
1414
[JsonPropertyName("annId")]
1515
public string AnnouncementId { get; set; } = string.Empty;
1616
/// <summary>
17-
/// Title
17+
/// ["<c>annTitle</c>"] Title
1818
/// </summary>
1919
[JsonPropertyName("annTitle")]
2020
public string Title { get; set; } = string.Empty;
2121
/// <summary>
22-
/// Description
22+
/// ["<c>annDesc</c>"] Description
2323
/// </summary>
2424
[JsonPropertyName("annDesc")]
2525
public string Description { get; set; } = string.Empty;
2626
/// <summary>
27-
/// Language
27+
/// ["<c>language</c>"] Language
2828
/// </summary>
2929
[JsonPropertyName("language")]
3030
public string Language { get; set; } = string.Empty;
3131
/// <summary>
32-
/// Url
32+
/// ["<c>annUrl</c>"] Url
3333
/// </summary>
3434
[JsonPropertyName("annUrl")]
3535
public string Url { get; set; } = string.Empty;
3636

3737
/// <summary>
38-
/// Announcement type
38+
/// ["<c>annType</c>"] Announcement type
3939
/// </summary>
4040
[JsonPropertyName("annType")]
4141
public AnnouncementType Type { get; set; }
4242
/// <summary>
43-
/// Sub type
43+
/// ["<c>annSubType</c>"] Sub type
4444
/// </summary>
4545
[JsonPropertyName("annSubType")]
4646
public string? SubType { get; set; }
4747

4848
/// <summary>
49-
/// Timestamp
49+
/// ["<c>cTime</c>"] Timestamp
5050
/// </summary>
5151
[JsonPropertyName("cTime")]
5252
public DateTime Timestamp { get; set; }

Bitget.Net/Objects/Models/V2/BitgetAsset.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ namespace Bitget.Net.Objects.Models.V2
1010
public record BitgetAsset
1111
{
1212
/// <summary>
13-
/// Asset id
13+
/// ["<c>coinId</c>"] Asset id
1414
/// </summary>
1515
[JsonPropertyName("coinId")]
1616
public string AssetId { get; set; } = string.Empty;
1717

1818
/// <summary>
19-
/// Asset name
19+
/// ["<c>coin</c>"] Asset name
2020
/// </summary>
2121
[JsonPropertyName("coin")]
2222
public string Name { get; set; } = string.Empty;
2323

2424
/// <summary>
25-
/// Is the asset transferable
25+
/// ["<c>transfer</c>"] Is the asset transferable
2626
/// </summary>
2727
[JsonPropertyName("transfer")]
2828
public bool Transferable { get; set; }
2929

3030
/// <summary>
31-
/// Supported networks
31+
/// ["<c>chains</c>"] Supported networks
3232
/// </summary>
3333
[JsonPropertyName("chains")]
3434
public BitgetAssetNetwork[] Networks { get; set; } = Array.Empty<BitgetAssetNetwork>();
@@ -41,72 +41,72 @@ public record BitgetAsset
4141
public record BitgetAssetNetwork
4242
{
4343
/// <summary>
44-
/// Network name
44+
/// ["<c>chain</c>"] Network name
4545
/// </summary>
4646
[JsonPropertyName("chain")]
4747
public string Network { get; set; } = string.Empty;
4848
/// <summary>
49-
/// Whether a tag is needed for withdrawals
49+
/// ["<c>needTag</c>"] Whether a tag is needed for withdrawals
5050
/// </summary>
5151
[JsonPropertyName("needTag")]
5252
public bool NeedsTag { get; set; }
5353
/// <summary>
54-
/// Whether the asset is withdrawable
54+
/// ["<c>withdrawable</c>"] Whether the asset is withdrawable
5555
/// </summary>
5656
[JsonPropertyName("withdrawable")]
5757
public bool Withdrawable { get; set; }
5858
/// <summary>
59-
/// Whether the asset is depositable
59+
/// ["<c>rechargeable</c>"] Whether the asset is depositable
6060
/// </summary>
6161
[JsonPropertyName("rechargeable")]
6262
public bool Depositable { get; set; }
6363
/// <summary>
64-
/// Withdrawal fee
64+
/// ["<c>withdrawFee</c>"] Withdrawal fee
6565
/// </summary>
6666
[JsonPropertyName("withdrawFee")]
6767
public decimal WithdrawFee { get; set; }
6868
/// <summary>
69-
/// Extra withdrawal fee
69+
/// ["<c>extraWithdrawFee</c>"] Extra withdrawal fee
7070
/// </summary>
7171
[JsonPropertyName("extraWithdrawFee")]
7272
public decimal ExtraWithdrawFee { get; set; }
7373
/// <summary>
74-
/// Deposit confirmations needed
74+
/// ["<c>depositConfirm</c>"] Deposit confirmations needed
7575
/// </summary>
7676
[JsonPropertyName("depositConfirm"), JsonConverter(typeof(IntConverter))]
7777
public int? DepositConfirm { get; set; }
7878
/// <summary>
79-
/// Withdrawal confirmations
79+
/// ["<c>withdrawConfirm</c>"] Withdrawal confirmations
8080
/// </summary>
8181
[JsonPropertyName("withdrawConfirm"), JsonConverter(typeof(IntConverter))]
8282
public int? WithdrawConfirm { get; set; }
8383
/// <summary>
84-
/// Minimal deposit quantity
84+
/// ["<c>minDepositAmount</c>"] Minimal deposit quantity
8585
/// </summary>
8686
[JsonPropertyName("minDepositAmount")]
8787
public decimal MinDepositQuantity { get; set; }
8888
/// <summary>
89-
/// Minimal withdrawal quantity
89+
/// ["<c>minWithdrawAmount</c>"] Minimal withdrawal quantity
9090
/// </summary>
9191
[JsonPropertyName("minWithdrawAmount")]
9292
public decimal MinWithdrawQuantity { get; set; }
9393
/// <summary>
94-
/// Browser url
94+
/// ["<c>browserUrl</c>"] Browser url
9595
/// </summary>
9696
[JsonPropertyName("browserUrl")]
9797
public string? BrowserUrl { get; set; }
9898
/// <summary>
99-
/// Contract address
99+
/// ["<c>contractAddress</c>"] Contract address
100100
/// </summary>
101101
[JsonPropertyName("contractAddress")]
102102
public string? ContractAddress { get; set; }
103103
/// <summary>
104-
/// If not null, withdrawal quantities should be a multiple of this
104+
/// ["<c>withdrawStep</c>"] If not null, withdrawal quantities should be a multiple of this
105105
/// </summary>
106106
[JsonPropertyName("withdrawStep")]
107107
public decimal WithdrawQuantityStep { get; set; }
108108
/// <summary>
109-
/// Decimal places of withdrawal quantity
109+
/// ["<c>withdrawMinScale</c>"] Decimal places of withdrawal quantity
110110
/// </summary>
111111
[JsonPropertyName("withdrawMinScale"), JsonConverter(typeof(IntConverter))]
112112
public int? WithdrawQuantityPrecision { get; set; }

Bitget.Net/Objects/Models/V2/BitgetAssetValue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ namespace Bitget.Net.Objects.Models.V2
1010
public record BitgetAssetValue
1111
{
1212
/// <summary>
13-
/// Account type
13+
/// ["<c>accountType</c>"] Account type
1414
/// </summary>
1515
[JsonPropertyName("accountType")]
1616
public string AccountType { get; set; } = string.Empty;
1717
/// <summary>
18-
/// Usdt value
18+
/// ["<c>usdtBalance</c>"] Usdt value
1919
/// </summary>
2020
[JsonPropertyName("usdtBalance")]
2121
public decimal UsdtBalance { get; set; }

Bitget.Net/Objects/Models/V2/BitgetBalance.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ namespace Bitget.Net.Objects.Models.V2
1010
public record BitgetBalance
1111
{
1212
/// <summary>
13-
/// Asset name
13+
/// ["<c>coin</c>"] Asset name
1414
/// </summary>
1515
[JsonPropertyName("coin")]
1616
public string Asset { get; set; } = string.Empty;
1717
/// <summary>
18-
/// Available quantity
18+
/// ["<c>available</c>"] Available quantity
1919
/// </summary>
2020
[JsonPropertyName("available")]
2121
public decimal Available { get; set; }
2222
/// <summary>
23-
/// Frozen quantity
23+
/// ["<c>frozen</c>"] Frozen quantity
2424
/// </summary>
2525
[JsonPropertyName("frozen")]
2626
public decimal? Frozen { get; set; }
2727
/// <summary>
28-
/// Usdt value
28+
/// ["<c>usdtValue</c>"] Usdt value
2929
/// </summary>
3030
[JsonPropertyName("usdtValue")]
3131
public decimal UsdtValue { get; set; }

0 commit comments

Comments
 (0)