For the complete documentation index, see llms.txt. This page is also available as Markdown.

SUBSCRIBE Index

Request

Field
Type
Required
Description

data

array of strings

Yes

Channel name in the format index:ASSET. Example: index:ETH

op

string

Yes

Operation code allowed values: subscribe unsubscribe

  • ASSET allowed values: ETH

Example

{
  "op":"subscribe", 
  "data": ["index:ETH"]
}

Response

Field
Type
Required
Description

data.price

string

Yes

Price in USD. Example: 12.23

data.timestamp

string

Yes

Index update timestamp in UNIX timestamp in nanoseconds. Example: 1680249600000000000

channel

string

Yes

Channel name in the format index:ASSET. Example: index:ETH

Example

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

Last updated

Was this helpful?