-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added restClient.SpotApi.Account.GetRateLimitsAsync endpoint
- Loading branch information
Showing
7 changed files
with
162 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
GateIo.Net.UnitTests/Endpoints/Spot/Account/GetRateLimits.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
GET | ||
/api/v4/account/rate_limit | ||
true | ||
[ | ||
{ | ||
"type": "spot", | ||
"tier": "1", | ||
"ratio": "0", | ||
"main_ratio": "0", | ||
"updated_at": "1728230400" | ||
}, | ||
{ | ||
"type": "futures", | ||
"tier": "1", | ||
"ratio": "0", | ||
"main_ratio": "0", | ||
"updated_at": "1728230400" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using CryptoExchange.Net.Attributes; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace GateIo.Net.Enums | ||
{ | ||
/// <summary> | ||
/// Rate limit type | ||
/// </summary> | ||
public enum RateLimitType | ||
{ | ||
/// <summary> | ||
/// Spot | ||
/// </summary> | ||
[Map("spot")] | ||
Spot, | ||
/// <summary> | ||
/// Futures | ||
/// </summary> | ||
[Map("futures")] | ||
Futures | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using GateIo.Net.Enums; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace GateIo.Net.Objects.Models | ||
{ | ||
/// <summary> | ||
/// User rate limits | ||
/// </summary> | ||
public record GateIoUserRateLimit | ||
{ | ||
/// <summary> | ||
/// Type | ||
/// </summary> | ||
[JsonPropertyName("type")] | ||
public RateLimitType RateLimitType { get; set; } | ||
/// <summary> | ||
/// Tier | ||
/// </summary> | ||
[JsonPropertyName("tier")] | ||
public string Tier { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Ratio | ||
/// </summary> | ||
[JsonPropertyName("ratio")] | ||
public decimal Ratio { get; set; } | ||
/// <summary> | ||
/// Main ratio | ||
/// </summary> | ||
[JsonPropertyName("main_ratio")] | ||
public decimal MainRatio { get; set; } | ||
/// <summary> | ||
/// Update time | ||
/// </summary> | ||
[JsonPropertyName("updated_at")] | ||
public DateTime UpdatedAt { get; set; } | ||
} | ||
|
||
|
||
} |