SUBSCRIBE Index

SUB wss://ws.aevo.xyz

Returns the index price.

REQUEST
  • *op** string required Operation code allowed values: subscribe unsubscribe
  • *data** array of strings required Channel name in the format index:ASSET. Eg. index:ETH
  • ASSET allowed values: ETH
Example
{
  "op":"subscribe", 
  "data": ["index:ETH"]
}

RESPONSE
  • *channel** string required Channel name in the format index:ASSET. Eg. index:ETH

data.price string required Price in USD. Eg. 12.23

data.timestamp string required Index update timestamp in UNIX timestamp in nanoseconds. Eg. 1680249600000000000

Example
{
    "channel": "index:ETH",
    "data": {
        "price": "1337.16",
        "timestamp": "1673438070391698947"
    }
}