Skip to content
Longport Whale
Custom Data

Upload Simulate Margin Call File

The "Upload" button on the custom-data page: first upload the file to object storage to obtain an s3_key, then call this endpoint to register the custom Margin Call simulation data file.

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

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

s3_keystringrequired

S3 Key. The key obtained after first uploading the file to object storage, populated into this field.

file_namestringrequired

File Name. The original name of the uploaded file.

operatorstring

Operator. The operator (the currently logged-in admin account).

Responses

HTTP 200No confirmable field definitions are available for the response yet.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs