Skip to content

Commit

Permalink
[gateio-streaming] Fix wrong order side mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
bigscoop committed Aug 29, 2023
1 parent 600875b commit c0b58cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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())
Expand Down

0 comments on commit c0b58cc

Please sign in to comment.