Skip to main content
GET
/
v1
/
orders
/
{order_id}
Get order
curl --request GET \
  --url https://api.anthid.com/v1/orders/{order_id}
{
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "filled_quantity": 123,
  "intent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "quantity": 123,
  "received_at": "2023-11-07T05:31:56Z",
  "symbol": "<string>",
  "average_price": {
    "integer": 123,
    "precision": 1
  },
  "external_order_id": "<string>",
  "limit_price": {
    "integer": 123,
    "precision": 1
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.anthid.com/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

order_id
string<uuid>
required

Internal order id to fetch

Response

Order retrieved

account_id
string<uuid>
required
broker
enum<string>
required
Available options:
unspecified,
lightspeed,
alpaca
filled_quantity
integer<int64>
required
intent_id
string<uuid>
required
order_id
string<uuid>
required
order_side
enum<string>
required
Available options:
UNSPECIFIED,
BUY,
SELL,
SELL_SHORT
order_state
enum<string>
required
Available options:
Unspecified,
Open,
Closed,
Rejected
order_status
enum<string>
required
Available options:
UNSPECIFIED,
PENDING_NEW,
NEW,
PARTIALLY_FILLED,
FILLED,
PENDING_CANCEL,
CANCELLED,
PENDING_REPLACE,
REPLACED,
STOPPED,
REJECTED
order_type
enum<string>
required
Available options:
UNSPECIFIED,
LIMIT,
MARKET
organization_id
string<uuid>
required
quantity
integer<int64>
required
received_at
string<date-time>
required
route_strategy
enum<string>
required
Available options:
SMART,
ARCA,
EDGA,
EDGX,
IEX,
MEMX,
XASE,
XBOS,
XCIS,
XNMS,
XNYS
symbol
string
required
time_in_force
enum<string>
required
Available options:
UNSPECIFIED,
DAY,
IMMEDIATE_OR_CANCEL,
GOOD_TILL_CANCEL,
AT_OPEN,
FILL_OR_KILL,
EXT
average_price
object

for the WHY I had to do this, it's binary floating point math and the inability to represent prices exactly with floats. rust_decimal is too heavy when we just need a fixed point number. Also, this can be optimized heavily for cpu cache lines, which is a distant plan

external_order_id
string | null
limit_price
object

for the WHY I had to do this, it's binary floating point math and the inability to represent prices exactly with floats. rust_decimal is too heavy when we just need a fixed point number. Also, this can be optimized heavily for cpu cache lines, which is a distant plan