access_token from B1 (Authentication — Underlying). POST, PUT, and DELETE calls additionally require x-otp-token, x-lang, and x-via headers.
Authentication: RequiresAuthorization: Bearer <access_token>from B1. POST/PUT/DELETE also requirex-otp-token: 552066a35eb30a9815afc952b14287a8(sandbox fixture),x-lang: vi,x-via: K.
C1. Place Order (Underlying)
Submits a new stock order for a sub-trading account. POST/accounts/:accountId/orders/underlying
Sandbox URL
Parameters
Example Request (cURL against Sandbox)
Example Sandbox Response
Sandbox behavior: Sandbox validates that all required fields are present and correctly typed, and requires the same headers as Production, but no real order reaches the exchange. Every successful call returns a fixed example order ID. In place of a one-time password sent to your phone, sandbox accepts the fixed fixture OTP token documented on this page — send that exact string in x-otp-token.
C2. Update Order (Underlying)
Amends quantity and/or limit price on an existing, still-eligible stock order. PUT/accounts/:accountId/orders/underlying/:orderId
Sandbox URL
Parameters
Example Request (cURL against Sandbox)
Example Sandbox Response
Sandbox behavior: Sandbox validates that all required fields are present and correctly typed, and requires the same headers as Production, but no real order reaches the exchange. Every successful call returns a fixed example order ID. In place of a one-time password sent to your phone, sandbox accepts the fixed fixture OTP token documented on this page — send that exact string in x-otp-token.
C3. Cancel Order (Underlying)
Cancels an existing, unfilled stock order. DELETE/accounts/:accountId/orders/underlying/:orderId?timeType=T&isbuyin=N
Sandbox URL
Parameters
Example Request (cURL against Sandbox)
Example Sandbox Response
Sandbox behavior: Sandbox validates that all required fields are present and correctly typed, and requires the same headers as Production, but no real order reaches the exchange. Every successful call returns a fixed example order ID. In place of a one-time password sent to your phone, sandbox accepts the fixed fixture OTP token documented on this page — send that exact string in x-otp-token.
C4. Get Underlying Buying Power
Returns available buying power for a stock, given a proposed order price. GET-only — nox-otp-token needed.
GET /accounts/:accountId/underlying/buyingPower
Sandbox URL
Parameters
Example Request (cURL against Sandbox)
Example Sandbox Response
Sandbox behavior: Sandbox returns one fixed example record for any accountId you pass, so you can validate field names and data types before pointing your integration at Production, where the data reflects the real account.
