API Reference

Create New Order

Create a new order in the exchange.

🔐

To call this endpoint, the API Key need to have the Place and Manage Orders permission enabled (via OSL website).

Order Types Supported

  • Limit Order Day - OrdType = Limit , timeInForce = Day
  • Limit Order (GTC) - OrdType = Limit , timeInForce = GoodTillCancel
  • Market Order - OrdType = Market , timeInForce = GoodTillCancel
  • Immediate or Cancel (IOC) - OrdType = Limit , timeInForce = ImmediateOrCancel
  • Fill or Kill (FOK) - OrdType = Limit , timeInForce = FillOrKill
  • Post-Only Order - OrdType = Limit , timeInForce = Day or GoodTillCancel, execInst = PostOnly

ordStatus Code Table

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
Language
Credentials
Click Try It! to start a request and see the response here!