For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Support Center
OverviewAPIResources
OverviewAPIResources
  • REST API Endpoints
      • GETAccount Risk Status Dependents
      • GETAccount Risk Status Item
      • GETAccount Risk Status Items
      • GETAccount Risk Status L Dependents
      • GETAccount Risk Status List
      • POSTReset Auto Liq Status
      • POSTSet Account Notes
      • POSTSet Admin Auto Liq Action
      • POSTUpdate Max Net Liq
      • GETContract Margin Dependents
      • GETContract Margin Item
      • GETContract Margin Items
      • GETContract Margin L Dependents
      • GETPermissioned Account Auto Liq Dependents
      • GETPermissioned Account Auto Liq Item
      • GETPermissioned Account Auto Liq Items
      • GETPermissioned Account Auto Liq L Dependents
      • GETPermissioned Account Auto Liq List
      • GETProduct Margin Dependents
      • GETProduct Margin Item
      • GETProduct Margin Items
      • GETProduct Margin L Dependents
      • GETProduct Margin List
      • POSTUser Account Auto Liq Create
      • GETUser Account Auto Liq Dependents
      • GETUser Account Auto Liq Item
      • GETUser Account Auto Liq Items
      • GETUser Account Auto Liq L Dependents
      • GETUser Account Auto Liq List
      • POSTUser Account Auto Liq Update
      • POSTUpdate User Auto Liq
      • POSTUser Account Position Limit Create
      • POSTDelete User Account Position Limit
      • POSTDelete User Account Risk Parameter
      • GETUser Account Position Limit Dependents
      • GETUser Account Position Limit Item
      • GETUser Account Position Limit Items
      • GETUser Account Position Limit L Dependents
      • POSTUser Account Position Limit Update
      • POSTUser Account Risk Parameter Create
      • GETUser Account Risk Parameter Dependents
      • GETUser Account Risk Parameter Item
      • GETUser Account Risk Parameter Items
      • GETUser Account Risk Parameter L Dependents
      • POSTUser Account Risk Parameter Update
Support Center
LogoLogo
REST API EndpointsRisks

Update User Auto Liq

POST
https://demo.tradovateapi.com/v1/userAccountAutoLiq/updateuserautoliq
POST
/v1/userAccountAutoLiq/updateuserautoliq
1const url = 'https://demo.tradovateapi.com/v1/userAccountAutoLiq/updateuserautoliq';
2const options = {
3 method: 'POST',
4 headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
5 body: '{"accountId":1}'
6};
7
8try {
9 const response = await fetch(url, options);
10 const data = await response.json();
11 console.log(data);
12} catch (error) {
13 console.error(error);
14}
200Successful
1{
2 "errorText": "string",
3 "userAccountAutoLiq": {
4 "id": 1,
5 "changesLocked": true,
6 "marginPercentageAlert": 1.1,
7 "dailyLossPercentageAlert": 1.1,
8 "dailyLossAlert": 1.1,
9 "marginPercentageLiqOnly": 1.1,
10 "dailyLossPercentageLiqOnly": 1.1,
11 "dailyLossLiqOnly": 1.1,
12 "marginPercentageAutoLiq": 1.1,
13 "dailyLossPercentageAutoLiq": 1.1,
14 "dailyLossAutoLiq": 1.1,
15 "weeklyLossAutoLiq": 1.1,
16 "flattenTimestamp": "2024-01-15T09:30:00Z",
17 "trailingMaxDrawdown": 1.1,
18 "trailingMaxDrawdownLimit": 1.1,
19 "trailingMaxDrawdownMode": "EOD",
20 "dailyProfitAutoLiq": 1.1,
21 "weeklyProfitAutoLiq": 1.1,
22 "doNotUnlock": true
23 },
24 "permissionedAccountAutoLiq": {
25 "id": 1,
26 "marginPercentageAlert": 1.1,
27 "dailyLossPercentageAlert": 1.1,
28 "dailyLossAlert": 1.1,
29 "marginPercentageLiqOnly": 1.1,
30 "dailyLossPercentageLiqOnly": 1.1,
31 "dailyLossLiqOnly": 1.1,
32 "marginPercentageAutoLiq": 1.1,
33 "dailyLossPercentageAutoLiq": 1.1,
34 "dailyLossAutoLiq": 1.1,
35 "weeklyLossAutoLiq": 1.1,
36 "dailyProfitAutoLiq": 1.1,
37 "weeklyProfitAutoLiq": 1.1
38 }
39}
Was this page helpful?
Previous

User Account Position Limit Create

Next
Built with

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
accountIdlongRequired
asOwnerbooleanOptional
marginPercentageAlertdoubleOptional

Margin % for an Alert

dailyLossPercentageAlertdoubleOptional

Daily Loss % for an Alert

dailyLossAlertdoubleOptional

$ Daily Loss for an Alert

marginPercentageLiqOnlydoubleOptional

Margin % for an Liq Only

dailyLossPercentageLiqOnlydoubleOptional

Daily Loss % for an Liq Only

dailyLossLiqOnlydoubleOptional

$ Daily Loss for an Liq Only

marginPercentageAutoLiqdoubleOptional

Margin % for an Auto-Liq

dailyLossPercentageAutoLiqdoubleOptional

Daily Loss % for an AutoLiq

dailyLossAutoLiqdoubleOptional

$ Daily Loss for an Auto-Liq

weeklyLossAutoLiqdoubleOptional

$ Weekly Loss for an Auto-Liq

flattenTimestampdatetimeOptional

Flatten & Cancel

trailingMaxDrawdowndoubleOptional

$ Trailing Max Drawdown

trailingMaxDrawdownLimitdoubleOptional

$ Trailing Max Drawdown Limit

trailingMaxDrawdownModeenumOptional
EOD, RealTime
Allowed values:
dailyProfitAutoLiqdoubleOptional

$ Daily Profit for an Auto-Liq

weeklyProfitAutoLiqdoubleOptional

$ Weekly Profit for an Auto-Liq

doNotUnlockbooleanOptional
Do not automatically unlock account if triggered

Response

UpdateUserAutoLiqResponse
errorTextstring<=8192 characters

Non-empty if the request failed

userAccountAutoLiqobject
permissionedAccountAutoLiqobject