Skip to main content

GET /api/v1/market/orders/my

Retrieve the authenticated user's complete order history, including filled, cancelled, and pending orders.

Authentication​

Required. Bearer token in Authorization header.

Request​

No query parameters required.

Example​

curl https://intotes.com/api/v1/market/orders/my \
-H "Authorization: Bearer <token>"

Response​

200 OK​

[
{
"id": 1001,
"user_id": 7,
"market_id": 42,
"type": "buy",
"kind": "limit",
"token_type": "YES",
"price": 6500,
"amount": 1000,
"filled": 1000,
"status": "filled",
"use_bonus": false,
"created_at": "2026-04-03T10:30:00Z"
},
{
"id": 1002,
"user_id": 7,
"market_id": 42,
"type": "sell",
"kind": "market",
"token_type": "YES",
"price": 0,
"amount": 500,
"filled": 500,
"status": "filled",
"use_bonus": false,
"created_at": "2026-04-03T14:15:00Z"
},
{
"id": 1003,
"user_id": 7,
"market_id": 55,
"type": "buy",
"kind": "limit",
"token_type": "NO",
"price": 3000,
"amount": 2000,
"filled": 0,
"status": "cancelled",
"use_bonus": false,
"created_at": "2026-04-04T08:00:00Z"
}
]

Response Fields​

Returns an array of Order objects. See Place Order for the full Order schema.

FieldTypeDescription
idint64Unique order identifier.
statusstring"pending", "partial", "filled", or "cancelled".
filledintAmount already filled.

Errors​

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid bearer token.