API Reference

The service allows users to easily query for recent price updates via a REST API or via a websocket

Through a REST API Endpoint

A user could use this endpoint to query symbol price quotes via REST API. Our REST API endpoints could be found at: https://api.eo.app

Get Rate

  • Endpoint: /api/v1/get_rate

  • Method: GET

  • Parameters:

    • symbol (string, required): The symbol for which to get the rate.

  • Authentication The REST API authentication method uses a username and password. The username is the API key provided to you by EO, and the password should be left blank.

$ curl -X GET -u your_api_key "https://api.testnet.eo.app/api/v1/get_feed?symbol=eth"
{
    "symbol":"eth",  
    "rate":"2235520000000000000000",   
    "timestamp":1704645014000,  
    "data":"0x0c64cc6cb523085bac8aa2221d5458999...2309417974f4a72b98"
} 

Get Symbols

  • Endpoint: /api/v1/get_symbols

  • Method: GET

Example

Response

Socket.IO API

We provide a simple socket stream using the standard Socket.IO library. The message protocol is described in the following section and includes a connection, authentication and subscribe phases.

Connection

Connection is made to our EO api endpoint at https://api.testnet.eo.app. Once connected the consumer can initiate an authentication event.

Request Events

  1. authenticate

  • name: authenticate

  • payload:

  1. subscribe

    • name: subscribe

    • payload:

  2. authenticated

    • This message is received when your client was successfully authenticated with a valid API key. Once you receive this it's a good trigger point for subscribing to quote feeds.

    • name: 'authenticated'

    • payload: none

  3. quote

    • name: quote

    • payload:

Last updated