Orders on this account, newest first
GET
/v1/accounts/{id}/orders
curl "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/orders" \ -H "Authorization: Bearer $IDEALX_API_KEY"const res = await fetch("https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/orders", { headers: { Authorization: `Bearer ${process.env.IDEALX_API_KEY}` },});if (!res.ok) throw new Error((await res.json()).error.code);const data = await res.json();import osimport requests
res = requests.get( "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/orders", headers={"Authorization": f"Bearer {os.environ['IDEALX_API_KEY']}"}, timeout=30,)res.raise_for_status()data = res.json()Without filters: the latest 100. With any of status, from, to, assetClass, q, portfolioId, limit or offset: filtered and paged on the server (up to 5,000 matching), with total.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”status
Open (still working), done (ended), or order states comma-separated (filled,cancelled…)
string
Open (still working), done (ended), or order states comma-separated (filled,cancelled…)
from
Placed on or after this day (UTC)
string
Placed on or after this day (UTC)
to
Placed on or before this day (UTC)
string
Placed on or before this day (UTC)
assetClass
string
q
Name or symbol
string
Name or symbol
portfolioId
string
limit
integer
offset
integer | null
Responses
Section titled “Responses”OK
Media typeapplication/json
object
orders
required
Array<object>
object
id
required
string
portfolioId
required
string
instrumentId
required
string
side
required
string
type
required
string
quantity
required
string
limitPrice
required
string | null
state
required
string
filledQuantity
required
string
filledValue
required
object
amount
required
string
currency
required
string
setAside
required
Still set aside: cash for buys, units for sells
string
approvalsRequired
required
number
approvals
required
number
approvedByMe
required
boolean
rejectReason
required
string | null
reason
required
Why the firm placed it under its discretionary mandate
string | null
createdAt
required
string
total
required
How many match, across all pages
number
Example
{ "orders": [ { "side": "buy", "type": "market", "filledValue": { "amount": "1250.00", "currency": "AUD" } } ]}