From 49d4c3fecc698dda8aa428e90b705b2e24e0f599 Mon Sep 17 00:00:00 2001 From: BZ-CO <30245815+BZ-CO@users.noreply.github.com> Date: Sat, 13 Nov 2021 00:02:12 +0200 Subject: [PATCH 1/2] Added ticker to Okex supported WS functionalities --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 27cab333..9ad84ddd 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The following cryptocurrency exchanges are supported: | Livecoin | x | x | | | NDAX | x | x | T R | | OKCoin | x | x | R B | -| OKEx | x | x | R B O | +| OKEx | x | x | T R B O | | Poloniex | x | x | T R B | | YoBit | x | x | | | ZB.com | wip | | R | From 587b2cc0a7edd36e3bed8e2e846aa9f865114a38 Mon Sep 17 00:00:00 2001 From: BZ-CO <30245815+BZ-CO@users.noreply.github.com> Date: Sat, 13 Nov 2021 00:04:37 +0200 Subject: [PATCH 2/2] Update OnPlaceOrderAsync Okex Added copy extra params to payload --- src/ExchangeSharp/API/Exchanges/OKGroup/ExchangeOKExAPI.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ExchangeSharp/API/Exchanges/OKGroup/ExchangeOKExAPI.cs b/src/ExchangeSharp/API/Exchanges/OKGroup/ExchangeOKExAPI.cs index 59b41ed8..b08e4d1d 100644 --- a/src/ExchangeSharp/API/Exchanges/OKGroup/ExchangeOKExAPI.cs +++ b/src/ExchangeSharp/API/Exchanges/OKGroup/ExchangeOKExAPI.cs @@ -337,7 +337,8 @@ protected override async Task OnPlaceOrderAsync(ExchangeOrd throw new ArgumentNullException(nameof(order.Price), "Okex place order request requires price"); payload["px"] = order.Price.ToStringInvariant(); } - + order.ExtraParameters.CopyTo(payload); + var token = await MakeJsonRequestAsync("/trade/order", BaseUrlV5, payload, "POST"); return new ExchangeOrderResult() {