Skip to content

Commit 922288b

Browse files
authored
Update OnPlaceOrderAsync Okex (#687)
1 parent 82e507e commit 922288b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The following cryptocurrency exchanges are supported:
5252
| Livecoin | x | x | |
5353
| NDAX | x | x | T R |
5454
| OKCoin | x | x | R B |
55-
| OKEx | x | x | R B O |
55+
| OKEx | x | x | T R B O |
5656
| Poloniex | x | x | T R B |
5757
| YoBit | x | x | |
5858
| ZB.com | wip | | R |

src/ExchangeSharp/API/Exchanges/OKGroup/ExchangeOKExAPI.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ protected override async Task<ExchangeOrderResult> OnPlaceOrderAsync(ExchangeOrd
337337
throw new ArgumentNullException(nameof(order.Price), "Okex place order request requires price");
338338
payload["px"] = order.Price.ToStringInvariant();
339339
}
340-
340+
order.ExtraParameters.CopyTo(payload);
341+
341342
var token = await MakeJsonRequestAsync<JToken>("/trade/order", BaseUrlV5, payload, "POST");
342343
return new ExchangeOrderResult()
343344
{

0 commit comments

Comments
 (0)