Response / Error Code Reference

📘

Only common response codes are listed here. For endpoint specific codes, please check individual endpoint pages.

FlashTrade (RFQ) Errors


See: https://osl.com/reference/flash-trade-rfq-error-codes


Exchange ordStatus Code Table (V4)

CodeDescription
NewThe order is active and unexecuted on the exchange
PartiallyFilledThe order is active and partially filled on the exchange
FilledThe order is fully filled and no longer active on the exchange
CancelledThe order is cancelled and no longer active on the exchange
ReplacedThe order is amended
RejectedThe order is rejected and no longer active on the exchange
SuspendedThe order is suspended
ExpiredThe order is expired and no longer active on the exchange
WithdrawnThe order is withdrawn to prevent self trade orders

orderState Code Table (V3)

CodeDescription
ACTIVEThe order is active and unexecuted on the exchange
PARTIAL_FILLThe order is active and partially filled on the exchange
FULL_FILLThe order is fully filled and no longer active on the exchange
EXPIREDThe order is expired (past expiry date / time) and no longer active on the exchange
PENDING_SUBMISSIONThe order is pending processing by the exchange. Need to call an order enquiry to get the latest state

WebSocket

orderStatus Code Table

CodeDescription
SUCCESSThe order has been successfully executed
INDETERMINATEThe order is in an undetermined state
FAILEDThe order failed to execute

FIX

FIX Error Codes

CodeError NameDescription
1002SystemSuspendedSystem is suspended
1106UsermanagerSuspendedUser is suspended
1192SessionErrorSession error
19087InvalidOrderOrder is invalid
20002OrderInvalidSideOrder get rejected with invalid side
20003OrderInvalidTypeOrder get rejected with invalid type
20004OrderInvalidPriceOrder get rejected with invalid price
20005OrderInvalidQuantityOrder get rejected with invalid quantity
20007OrderInvalidExpiryDateOrder get rejected with invalid expiry date
20008OrderInvalidExpiryTimeOrder get rejected with invalid expiry time
20009OrderInvalidPriceStepOrder get rejected with invalid price step
20015OrderUserSuspendedOrder get rejected with user being suspended
20024OrderInsufficientHoldingsOrder get rejected with insufficient holdings
20025OrderNoHoldingsOrder get rejected with no holdings
20026OrderQuantityTooSmallOrder get rejected with quantity smaller than the minimum quantity
20027OrderQuantityTooLargeOrder get rejected with quantity larger than the maximum quantity
20031OrderInsufficientCashOrder get rejected with insufficient Cash
20032OrderInvalidCurrencyOrder get rejected with invalid currency
20033OrderInvalidSettlementCurrencyOrder get rejected with invalid settlement currency
20062OrderValueTooSmallOrder value cannot be too small
20063OrderValueTooLargeOrder value cannot be too large
20066OrderInvalidQuantityStepOrder get rejected with invalid quantity step
20088OrderInstrumentmarketClosedOrder get rejected because instrument market is closed
20115OrderPriceZeroOrder price cannot be zero
20116OrderPriceNegativeOrder price cannot be negative
20117OrderPriceTooLowOrder price cannot be too low
20118OrderPriceTooHighOrder price cannot be too high
20132OrderNotMatchedOrder get rejected with no other orders to match against
22213OrderStatusSetNoCancelMatchedOrder matched, cancel not allowed
22215OrderStatusSetNoCancelCancelledOrder cancelled, cancel not allowed
22301OrderAmendNotAvailableFailed to amend an order which has already filled