Skip to content
Margin Call Amount

Get Warning Value Calculation Rule

Get Warning Value Calculation Rule.

Request parameters

This endpoint does not accept business parameters.

Result

On success, the endpoint completes the operation. See the 200 response schema for returned data and subsequent state information.

POSThttps://b-api.longbridge.xyz/v1/risk_monitoring/get_warning_val_cal_rule

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Responses

HTTP 200The request was processed successfully. data contains margin, cash.
Standard response envelopecodemessagedata
dataobjectdata structure
marginobject

Returned value: Margin object. See the nested fields below for its structure.

Child attributes
is_cal_in_debtboolean

Loan interest to be deducted

is_cal_navboolean

Margin owed

is_cal_over_financeboolean

Financing limit exceeded

is_max_trade_creditboolean

Trading limit

ratiostring

Ratio

over_available_financestring

Over-limit financing amount

is_auto_over_financeboolean

Whether over-limit financing is triggered automatically

cashobject

Returned value: Cash object. See the nested fields below for its structure.

Child attributes
is_cal_in_debtboolean

Loan interest to be deducted

is_cal_navboolean

Margin owed

is_max_trade_creditboolean

Trading limit

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs