Skip to main content
GET
List your orders

Authorizations

Authorization
string
header
required

Authorization: Bearer <key>. Sandbox keys start with mgw_test_ and live keys start with mgw_live_. Each key works only in its own environment, and a live key works only from the IP addresses or ranges registered for it.

Scopes

read

Query Parameters

limit
integer
default:25

The number of items to return.

Required range: 1 <= x <= 100
cursor
string

The next_cursor from the previous page, unchanged.

Minimum string length: 1
account
string

Only orders for this account. An account code. Case-insensitive on input, and returned in uppercase.

Pattern: ^[A-Za-z0-9]{1,64}$
state
enum<string>

Only orders in this state. sending: stored, and the send is in progress. If it still reads sending after its request has ended, its outcome was not recorded: it resolves as an uncertain order does, and an identical order is refused with 409 similar_order_unresolved until then. pending: the exchange has the order. partially_filled, filled: some or all of the order has traded. uncertain: the exchange did not confirm receipt. The gateway does not resubmit it, and our operations team reconciles it against the exchange's records. Until it resolves, an identical order on the same account is refused with 409 similar_order_unresolved. rejected: the broker or the exchange rejected it; see reject_reason. refused: it never reached the exchange: we refused it before sending, or our operations team confirmed the exchange never received it. cancelled: the exchange confirmed the cancel. expired: its time in force ran out. New values can be added: handle an unrecognised value with a safe default.

Available options:
sending,
pending,
partially_filled,
filled,
uncertain,
rejected,
refused,
cancelled,
expired
symbol
string

Only orders for this symbol. Letter case doesn't matter.

Pattern: ^[A-Za-z0-9.-]{1,20}$
client_reference
string

Only the ones you sent with this client_reference, matched exactly. Your own reference for this, such as your internal ID, so you can find it again. 1 to 64 printable ASCII characters, with no spaces, matched exactly. We store it and return it. It's part of the request an Idempotency-Key stands for, so a retry with a different client_reference returns 409. Never put personal data in it: no names, phone numbers, email addresses, BVN, NIN or account numbers of your customers.

Required string length: 1 - 64
Pattern: ^[!-~]{1,64}$
Example:

"ord-88213"

Response

A page of orders.

A page of your orders.

object
string
required
Allowed value: "list"
has_more
boolean
required

Whether more orders follow this page.

next_cursor
string | null
required

Pass this as cursor to get the next page. Null on the last page.

data
object[]
required

The orders on this page.