-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added FuturesApi.Trading.GetMaxOpenPositionSizeAsync endpoint
- Loading branch information
Showing
8 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
Kucoin.Net.UnitTests/Endpoints/Futures/Trading/GetMaxOpenPositionSize.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,14 @@ | ||
GET | ||
/api/v2/getMaxOpenSize | ||
true | ||
{ | ||
"success": true, | ||
"code": "200", | ||
"msg": "success", | ||
"retry": false, | ||
"data": { | ||
"symbol": "XBTUSDTM", | ||
"maxBuyOpenSize": 13808, | ||
"maxSellOpenSize": 13808 | ||
} | ||
} |
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
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
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,30 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Kucoin.Net.Objects.Models.Futures | ||
{ | ||
/// <summary> | ||
/// Max open size | ||
/// </summary> | ||
public record KucoinMaxOpenSize | ||
{ | ||
/// <summary> | ||
/// Symbol | ||
/// </summary> | ||
[JsonProperty("symbol")] | ||
public string Symbol { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Max buy size | ||
/// </summary> | ||
[JsonProperty("maxBuyOpenSize")] | ||
public long MaxBuyOpenSize { get; set; } | ||
|
||
/// <summary> | ||
/// Max sell size | ||
/// </summary> | ||
[JsonProperty("maxSellOpenSize")] | ||
public long MaxSellOpenSize { get; set; } | ||
} | ||
} |