activeAssetData
ChannelactiveAssetDataserver → client · type
activeAssetDataKeep the order ticket’s leverage / max size / available margin live for one instrument.
Subscribe
{
"method": "subscribe",
"type": "activeAssetData",
"subscription": {
"type": "activeAssetData",
"user": "0x0000000000000000000000000000000000000000",
"coin": "4",
"mode": "cross"
}
}Try it
Subscription parameters
coinstringrequired
typestringrequired
"activeAssetData"userEthAddressrequired
User to follow. Use the account address, not an agent's.
modestringnullableoptional
Server message
channelstring
"activeAssetData"dataWsActiveAssetData
availableToTradestring[]
Available notional to trade per side, [buy, sell].
coinstring
leverageWsLeverage
markPxDecimalString
Decimal number encoded as a string to avoid floating-point precision loss.
maxTradeSzsstring[]
Max tradeable size per side, [buy, sell].
onlyIsolatedboolean
Whether this instrument is restricted to isolated margin only.
userstring
Message example
{
"channel": "activeAssetData",
"data": {
"user": "0x0000000000000000000000000000000000000000",
"coin": "4",
"leverage": {
"type": "Cross",
"value": 0,
"rawUsd": ""
},
"maxTradeSzs": [
""
],
"availableToTrade": [
""
],
"markPx": "0",
"onlyIsolated": false
}
}