Appearance
trader.orders
1 method on trader.orders. Each returns the answer's data and throws NoviqaError on a failed answer.
list
GET
/trader/v1/ordersOrder history
The account's finished orders (filled, cancelled, expired, rejected), newest first, by finish time. Open pending orders are in GET /trader/v1/account. from (inclusive) and to (exclusive) are RFC3339 times; either may be left out; to must not be before from. page is 1-based (default 1), limit defaults to 100 and is capped at 1000. Only the signed-in account is ever read: the login comes from the session, never from the request.
Parameters
X-HST-Accountstring · headerIntended signed-in login captured by the browser tab before dispatch and retained across retries. A mismatch returns auth.account_changed (409) before mutation or refresh rotation. This never selects or authorizes an account; omission preserves existing API client compatibility.
fromstring · querytostring · querypageinteger · querylimitinteger · queryReturns
Promise<Order[]>The answer's
data.Errors
400
invalid_input: invalid input401
auth.session_expired: session expired, sign in again403
auth.invalid_terminal: this terminal cannot be used here403
auth.otp_enrol_required: your group requires one-time codes: set them up to continue403
auth.password_change_required: you must change your password first409
auth.account_changed: the signed-in account changed; sign in again before continuing500
internal: something went wrongts
import { trader } from "@/lib/noviqa"
const data = await trader.orders.list({
from: "2026-09-25T10:15:00Z",
to: "2026-09-25T10:15:00Z",
page: 1
})bash
curl -X GET "$NOVIQA_API_URL/trader/v1/orders?from=2026-09-25T10%3A15%3A00Z&to=2026-09-25T10%3A15%3A00Z&page=1" \
-H "Authorization: Bearer $NOVIQA_TOKEN"json
{
"success": true,
"code": "ok",
"message": "done",
"data": [
{
"activated_at": "2026-09-25T10:15:00Z",
"by_position_id": 1,
"comment": "Deposit via bank",
"contract_size": "1.08452",
"created_at": "2026-09-25T10:15:00Z",
"dealer": 1,
"deviation_pts": 1,
"digits": 5,
"done_at": "2026-09-25T10:15:00Z",
"expiration": "string",
"expires_at": "2026-09-25T10:15:00Z",
"external_id": "string"
}
],
"request_id": "5b7f2c1e"
}ts
trader.orders.list(query?: { from?, to?, page?, limit? }, options?: RequestOptions): Promise<models.Order[]>