Skip to content

Commit

Permalink
Added convert endpoints (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
Owdares authored Dec 3, 2023
1 parent e8683cb commit 0845289
Show file tree
Hide file tree
Showing 19 changed files with 812 additions and 67 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"orderId":"933256278426274426",
"createTime":1623381330472,
"orderStatus":"PROCESS" //PROCESS/ACCEPT_SUCCESS/SUCCESS/FAIL
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"quoteId":"12415572564",
"ratio":"38163.7",
"inverseRatio":"0.0000262",
"validTimestamp":1623319461670,
"toAmount":"3816.37",
"fromAmount":"0.1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"fromAsset":"BTC",
"toAsset":"USDT",
"fromAssetMinAmount":"0.0004",
"fromAssetMaxAmount":"50",
"toAssetMinAmount":"20",
"toAssetMaxAmount":"2500000"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"orderId":933256278426274426,
"orderStatus":"SUCCESS",
"fromAsset":"BTC",
"fromAmount":"0.00054414",
"toAsset":"USDT",
"toAmount":"20",
"ratio":"36755",
"inverseRatio":"0.00002721",
"createTime":1623381330472
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"asset": "BTC",
"fraction": 8
},
{
"asset": "SHIB",
"fraction": 2
}
]
2 changes: 1 addition & 1 deletion Binance.Net.UnitTests/JsonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ await _comparer.ProcessSubject(
{ "PlaceMarginOrderAsync", new List<string> { "price" } },
{ "GetMarginOrdersAsync", new List<string> { "price" } },
},
parametersToSetNull: new[] { "limit", "quoteQuantity", "fromId", "cancelClientOrderId" });
parametersToSetNull: new[] { "limit", "quoteQuantity", "fromId", "cancelClientOrderId", "orderId" });
}

[Test]
Expand Down
Loading

0 comments on commit 0845289

Please sign in to comment.