Upscale
Menu
On this page

Получить статус риска торгового аккаунта

Попробовать ↓
GET/accounts/{accountId}/risk-status
Получить статус риска торгового аккаунтаАккаунты

Снимок риска, который торговый движок хранит для счёта: текущий баланс и эквити, эквити на начало дня и максимальное эквити, счётчик торговых дней, состояние правила согласованности и базовая линия выплат.

  • Считывается в реальном времени из шарда, в котором хранится счёт, поэтому открытые позиции уже отражены в эквити.
  • Интерактивные сессии получают отдельный бюджет для этого эндпоинта, отличный от других; API-ключ вместо этого ограничен своими собственными лимитами на чтение.
Базовый URL https://api.upscale.trade

Авторизация

bearerhttp · bearerобязательно

Персональный API-ключ с префиксом usk_.

Параметры

Путь
accountIdstring · uuidобязательно

Идентификатор торгового аккаунта. Должен принадлежать вызывающей стороне.

Пример: 00000000-0000-4000-8000-000000000000

Примеры

curl --request GET 'https://api.upscale.trade/accounts/{accountId}/risk-status' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY'

Ответы

200Ответapplication/json
accountIdstring · uuidобязательно

Trader account the snapshot belongs to.

pattern
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Пример: 00000000-0000-4000-8000-000000000000
tradingDaysnumberобязательно

Number of days the account has traded on — counted against the minimum trading days of the challenge.

Пример: 0
currentBalancestring · int32обязательно

Account balance without the unrealised pnl of open positions, fp9 raw.

pattern
^(?:-?[1-9][0-9]*|0)$
Пример: 1000000000
currentEquitystring · int32обязательно

Balance plus the unrealised pnl of open positions, fp9 raw. This is what drawdown rules are measured against.

pattern
^(?:-?[1-9][0-9]*|0)$
Пример: 1000000000
dayStartEquitystring · int32обязательно

Equity the current trading day opened at, fp9 raw — the base of the daily drawdown limit.

pattern
^(?:-?[1-9][0-9]*|0)$
Пример: 1000000000
maxEquitystring · int32 · nullableобязательно

Highest equity the account has ever reached, fp9 raw — the base of the trailing drawdown. Null before the first trade.

pattern
^(?:-?[1-9][0-9]*|0)$
Пример: 1000000000
periodStartEquitystring · int32 · nullableобязательно

Equity the current withdrawal period opened at, fp9 raw. Null while no period is running.

pattern
^(?:-?[1-9][0-9]*|0)$
Пример: 1000000000
maxPeriodDailyEquityDeltastring · int32 · nullableобязательно

Largest single-day equity gain inside the current period, fp9 raw — the numerator of the consistency rule. Null while no day has closed in profit.

pattern
^(?:-?[1-9][0-9]*|0)$
Пример: 1000000000
maxPeriodDailyEquityDeltaAtstring · date-time · nullableобязательно

Day that produced maxPeriodDailyEquityDelta. Null together with it.

Пример: 2026-05-01T12:30:00.000Z
consistencyRuleAppliesbooleanобязательно

Whether the consistency rule is part of the rules of this account in its current phase.

Пример: true
consistencyRuleMetboolean[]обязательно

Whether the rule is currently satisfied. Null while the period is not in profit and the ratio cannot be computed.

Элементы массива · boolean

boolean

Посмотреть пример
[
  true
]
consistencyRuleRatiostring · int32 · nullableобязательно

Share of the period profit made on its best day, fp9 raw fraction. Null together with consistencyRuleMet.

pattern
^(?:-?[1-9][0-9]*|0)$
Пример: 1000000000
consistencyRuleLimitstring · int32обязательно

Largest share of period profit one day may account for, fp9 raw fraction (300000000 = 30%). A ratio above it fails the rule.

pattern
^(?:-?[1-9][0-9]*|0)$
Пример: 1000000000
payoutBaselineBalancestring · int32обязательно

Balance the next payout is measured from, fp9 raw. Equal to the initial account size until the first payout moves it.

pattern
^(?:-?[1-9][0-9]*|0)$
Пример: 1000000000
isPayoutBaselineRequirementMetbooleanобязательно

Whether equity is above payoutBaselineBalance — the condition for being eligible to request a payout.

Пример: true
401

Неавторизовано

403

Аккаунт принадлежит другому пользователю (account_access_denied), или запрос аутентифицирован с помощью API-ключа, тогда как api_trading отключён на аккаунте (api_trading_not_enabled).

404

Нет аккаунта с этим идентификатором.

429

Превышен лимит частоты запросов API-ключа (api_key_rate_limit_exceeded). Retry-After указывает, когда вернуться; тело содержит бакет (read / write), окно, которое сработало, его лимит и retryAt.