WebSocket API
query.maxBuySell
Get the maximum buy/sell quantity by account, symbol, and price. No signature required.
Required scope: tradingws:maxBuySell:get.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
bodyobjectrequired
idstringrequired
methodstringrequired
paramsobjectrequired
accountNostringrequired
Trading account to check the max buy/sell quantity for.
symbolstringrequired
Trading symbol to check the max buy/sell quantity for.
pricenumber | nulloptional
Price to check the max buy/sell quantity against.
timestampintegerrequired
Response Body
application/json
application/json
Sample Request
wscat -c wss://api.ssi.com.vn/ws/v3/trading -x '{
"id": "req-0010",
"method": "query.maxBuySell",
"params": {
"accountNo": "0901351",
"symbol": "SSI",
"price": 45.5
},
"timestamp": 1755000009000
}'Sample Response
{
"id": "req-0010",
"method": "query.maxBuySell",
"status": 200,
"result": {
"accountNo": "0901351",
"maxBuyQty": 5000,
"marginRatio": "50%",
"purchasingPower": 227500,
"maxSellQty": 1000
},
"rateLimit": {
"limit": 100,
"remaining": 95,
"resetMs": 820
}
}query.positionWS
Get position information for an account. Equity accounts return `equity`, derivative accounts return `derivative`. No signature required. Required scope: `tradingws:position:get`.
query.accountBalanceWS
Get the trading account balance. No signature required. Required scope: `tradingws:accountBalance:get`.