Skip to content

Commit

Permalink
Fix: INSUFFICIENT BALANCE order status (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekHare committed Apr 20, 2023
1 parent 941f604 commit caa91ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public static BitfinexSubmittedOrderStatus fromString(final String string) {
}

// Handle special cases
// Case1: INSUFFICIENT BALANCE (G1) was: ACTIVE (note:POSCLOSE), PARTIALLY FILLED
if(string.contains(", PARTIALLY FILLED")) {
// Case1: INSUFFICIENT BALANCE (U1) was: PARTIALLY FILLED @ 98.423(-0.10137227)
if(string.toUpperCase().contains("PARTIALLY FILLED")) {
return BitfinexSubmittedOrderStatus.PARTIALLY_FILLED;
}
throw new IllegalArgumentException("Unable to find order type for: " + string);
Expand Down

0 comments on commit caa91ef

Please sign in to comment.