SUB wss://ws.aevo.xyz
Returns relevant positions if any changes occur.
REQUEST
op string required Operation code allowed values: subscribe unsubscribe |
data array of strings required Channel name: positions |
Example
{
"op":"subscribe",
"data": ["positions"]
}
RESPONSE
channel string required Channel name: positions | |||||||||||||||||||||
data.timestamp string required Update timestamp in UNIX timestamp in nanoseconds. Eg. 1680249600000000000 | |||||||||||||||||||||
data.positions array of objects required Positions in Position object format.
|
Example
{
"channel": "positions",
"data": {
"timestamp": "1673671845685460000",
"positions": [
{
"instrument_id": "12",
"instrument_name": "ETH-30JUN23-1600-C",
"instrument_type": "OPTION",
"amount": "12.23",
"mark_price": "12.23",
"option": {
"iv": "0.23",
"strike": "2500",
"option_type": "put",
"expiry": "1680249600000000000",
"delta": "0.23",
"theta": "0.23",
"vega": "0.23",
"rho": "0.23"
},
"asset": "ETH",
"side": "buy",
"avg_entry_price": "12.23",
"unrealized_pnl": "12.23",
"maintenance_margin": "12.23"
}
]
}
}