Appearance
trader.accounts
1 method on trader.accounts. Each returns the answer's data and throws NoviqaError on a failed answer.
mePoliciesUi
GET
/trader/v1/accounts/me/policies/uiWhat the terminal may offer
The account's trading permissions worked out from the session, the account, its group and the symbols the group trades: margin mode and levels, FIFO close, hedging, trailing stops, mail/news/reports switches, the union of order types, fill policies and expirations over the tradable symbols, and ready-made can_* switches. can_trade is false for an investor session or a disabled account. Use it only to hide or grey out controls: every request is still checked on its own. 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.
Returns
Promise<UIPolicy>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 first404
not_found: not found409
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.accounts.mePoliciesUi()bash
curl -X GET "$NOVIQA_API_URL/trader/v1/accounts/me/policies/ui" \
-H "Authorization: Bearer $NOVIQA_TOKEN"json
{
"success": true,
"code": "ok",
"message": "done",
"data": {
"can_close": true,
"can_close_by": true,
"can_modify": true,
"can_open_limit": true,
"can_open_market": true,
"can_open_stop": true,
"can_open_stop_limit": true,
"can_set_sl": true,
"can_set_tp": true,
"can_trade": true,
"close_fifo": true,
"currency_digits": 1
},
"request_id": "5b7f2c1e"
}ts
trader.accounts.mePoliciesUi(options?: RequestOptions): Promise<account.UIPolicy>