Skip to content

Commit

Permalink
Merge branch 'gateio-v4' into trading-stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
bigscoop committed Aug 14, 2023
2 parents a2b7182 + dd2300e commit 37f15e5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class GateioErrorAdapter {
public final String INVALID_CURRENCY = "INVALID_CURRENCY";
public final String BALANCE_NOT_ENOUGH = "BALANCE_NOT_ENOUGH";
public final String TOO_FAST = "TOO_FAST";
public final String TOO_MANY_REQUESTS = "TOO_MANY_REQUESTS";
public final String INVALID_PARAM_VALUE = "INVALID_PARAM_VALUE";
public final String SERVER_ERROR = "SERVER_ERROR";

Expand All @@ -32,6 +33,7 @@ public ExchangeException adapt(GateioException e) {
return new FundsExceededException(e.getMessage(), e);

case TOO_FAST:
case TOO_MANY_REQUESTS:
return new RateLimitExceededException(e.getMessage(), e);

case SERVER_ERROR:
Expand Down

0 comments on commit 37f15e5

Please sign in to comment.