activeAssetData
Private per-user trading parameters for a single instrument: the user's current leverage setting, maximum tradeable size, available margin, plus the instrument's mark price. Requires both user and coin; for the same data across every instrument in one call, use the WebSocket userAssetData channel.
POST/infotype
activeAssetDataFill the order ticket: the user’s leverage, max tradeable size, and available margin on one instrument.
Request body
coinstringrequired
Instrument external id (numeric string) — the `index` value from the `perpMeta` response.
typestringrequired
userstringrequired
modestringnullableoptional
Optional: `isolated` or `cross`. Falls back to the account default when omitted.
Request example
curl -X POST https://rpc.txflow-testnet.xyz/info \
-H "Content-Type: application/json" \
-H "x-api-version: 2026-08-16" \
-d '{
"coin": "4",
"mode": "cross",
"type": "activeAssetData",
"user": "0x0000000000000000000000000000000000000000"
}'Try it
Response · ActiveAssetDataResponse 200
codeinteger
`0` on success.
dataActiveAssetDataResponse
availableToTradestring[]
coinstring
leverageLeverageSetting
markPxstring
maxTradeSzsstring[]
onlyIsolatedboolean
userstring
successboolean
`false` on error, with `code` set and the text in `message` instead of `data`.
Response example
{
"success": true,
"code": 0,
"data": {
"availableToTrade": [
""
],
"coin": "4",
"leverage": {
"mode": "oneWay",
"raw_usd": "",
"type": "",
"value": 0
},
"markPx": "0",
"maxTradeSzs": [
""
],
"onlyIsolated": false,
"user": "0x0000000000000000000000000000000000000000"
}
}