Place an order

Authenticate, choose an account, and send an order to market through the Order Management System.

Flow

Create an order flow

What you need

RequirementDetail
Scopeoms-api
APIOrder Management
Base URL (test)https://test-oms-api.openmarkets.com.au/

Steps

  1. Get a token. Request an access token with the oms-api scope. See Authentication.
  2. Select an account. GET /accounts/v1 lists the accounts available to you. Use includeInactive if you need inactive accounts as well.
  3. Create the order. Send the order with its account code, security code, side, volume, price, pricing instruction and lifetime. Invalid values are rejected with parameter-level codes such as InvalidLifetime or InvalidOrderPrice.
  4. Handle vetting. An accepted order may still be held by a vetting rule. Check orderState and stateDescription on the response. See post-creation vetting errors.
  5. Track the order. Poll the order endpoints, or subscribe to OMS streaming for live fills and state changes.

A 200 response means the order was accepted by the OMS, not that it reached the market. Orders can be held for authorisation. Outside market hours they are authorised the next business day before 10am. Always read orderState before treating an order as live.

Order Management APIOrders, trades, accounts and portfolios. OMS errorsParameter codes and vetting rules that can block an order. Stream order updatesReceive fills and state changes in real time.