From c0b58ccd88c661e68cd89d48a09971361c8898cc Mon Sep 17 00:00:00 2001 From: Dmitri Karpovich Date: Tue, 29 Aug 2023 12:27:23 +0200 Subject: [PATCH] [gateio-streaming] Fix wrong order side mapping --- .../bitrich/xchangestream/gateio/GateioStreamingAdapters.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xchange-stream-gateio/src/main/java/info/bitrich/xchangestream/gateio/GateioStreamingAdapters.java b/xchange-stream-gateio/src/main/java/info/bitrich/xchangestream/gateio/GateioStreamingAdapters.java index d181b78f8ec..4b5dd913dc7 100644 --- a/xchange-stream-gateio/src/main/java/info/bitrich/xchangestream/gateio/GateioStreamingAdapters.java +++ b/xchange-stream-gateio/src/main/java/info/bitrich/xchangestream/gateio/GateioStreamingAdapters.java @@ -47,7 +47,7 @@ public Trade toTrade(GateioTradeNotification notification) { return new Trade.Builder() - .type("sell".equals(tradePayload.getSide()) ? OrderType.ASK : OrderType.BID) + .type(tradePayload.getSide()) .originalAmount(tradePayload.getAmount()) .instrument(tradePayload.getCurrencyPair()) .price(tradePayload.getPrice()) @@ -61,7 +61,7 @@ public UserTrade toUserTrade(GateioSingleUserTradeNotification notification) { UserTradePayload userTradePayload = notification.getResult(); return new UserTrade.Builder() - .type("sell".equals(userTradePayload.getSide()) ? OrderType.ASK : OrderType.BID) + .type(userTradePayload.getSide()) .originalAmount(userTradePayload.getAmount()) .instrument(userTradePayload.getCurrencyPair()) .price(userTradePayload.getPrice())