Skip to content

Commit

Permalink
[gateio-v4] Add exception mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
bigscoop committed Oct 15, 2023
1 parent c894035 commit 9895f1b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws

@Override
public OrderBook getOrderBook(Instrument instrument, Object... args) throws IOException {
GateioOrderBook gateioOrderBook = getGateioOrderBook(instrument);
return GateioAdapters.toOrderBook(gateioOrderBook, instrument);
try {
GateioOrderBook gateioOrderBook = getGateioOrderBook(instrument);
return GateioAdapters.toOrderBook(gateioOrderBook, instrument);
} catch (GateioException e) {
throw GateioErrorAdapter.adapt(e);
}
}


Expand Down

0 comments on commit 9895f1b

Please sign in to comment.