Appearance
trader.language
2 methods on trader.language. Each returns the answer's data and throws NoviqaError on a failed answer.
retrieve
GET
/trader/v1/languageMail language
The language the account's mail and reports are written in: its own choice (language, empty = the group's), the group's default, the effective one and the available ones. 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<Language>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.language.retrieve()bash
curl -X GET "$NOVIQA_API_URL/trader/v1/language" \
-H "Authorization: Bearer $NOVIQA_TOKEN"json
{
"success": true,
"code": "ok",
"message": "done",
"data": {
"available": [
"string"
],
"default": "string",
"effective": "string",
"language": "string"
},
"request_id": "5b7f2c1e"
}ts
trader.language.retrieve(options?: RequestOptions): Promise<account.Language>update
PUT
/trader/v1/languageChoose the mail language
Sets the account's mail language to one of the available languages, or "" to follow the group's. language is required. Journaled. Answers the language as GET does. An investor (read-only) session is refused with trade.read_only.
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.
Request body
languagestringone of the available languages, or "" to follow the group's language
Returns
Promise<Language>The answer's
data.Errors
400
invalid_input: invalid input401
auth.session_expired: session expired, sign in again403
auth.csrf_invalid: request refused: reload the page and try 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 first403
trade.read_only: read-only access cannot trade404
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.language.update({
language: "de"
})bash
curl -X PUT "$NOVIQA_API_URL/trader/v1/language" \
-H "Authorization: Bearer $NOVIQA_TOKEN" \
-H "Content-Type: application/json" \
--data-raw '{
"language": "de"
}'json
{
"success": true,
"code": "ok",
"message": "done",
"data": {
"available": [
"string"
],
"default": "string",
"effective": "string",
"language": "string"
},
"request_id": "5b7f2c1e"
}ts
trader.language.update(body: http.docTraderLanguage, options?: RequestOptions): Promise<account.Language>