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

SUBSCRIBE Index

REQUEST

<tr>
  <td>
    * \*data\*\* <span class="ws-data-type ws-small-font">array of strings</span>  <span class="ws-required-tag ws-small-font">required</span>
      Channel name in the format `index:ASSET`. Eg. `index:ETH`
  </td>
</tr>

* \*op\*\* string required Operation code allowed values: `subscribe` `unsubscribe`

  • ASSET allowed values: ETH

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

RESPONSE

<tr>
  <td>
    <span class="ws-small-font">data.</span>**price** <span class="ws-data-type ws-small-font">string</span> <span class="ws-required-tag ws-small-font">required</span>
    Price in USD. Eg. `12.23`
  </td>
</tr>

<tr>
  <td>
    <span class="ws-small-font">data.</span>**timestamp** <span class="ws-data-type ws-small-font">string</span> <span class="ws-required-tag ws-small-font">required</span>
    Index update timestamp in UNIX timestamp in nanoseconds. Eg. `1680249600000000000`
  </td>
</tr>

* \*channel\*\* string required Channel name in the format `index:ASSET`. Eg. `index:ETH`

Example

Last updated