Skip to main content
GET
/
rate-oracle
/
rate
/
{trading_pair}
Get Single Rate
curl --request GET \
  --url http://localhost:8000/rate-oracle/rate/{trading_pair} \
  --header 'Authorization: Basic <encoded-value>'
{
  "trading_pair": "<string>",
  "rate": 123,
  "source": "<string>",
  "quote_token": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

trading_pair
string
required

Response

Successful Response

Response for a single trading pair rate.

trading_pair
string
required

The trading pair

rate
number | null
required

The rate (None if not found)

source
string
required

Rate oracle source used

quote_token
string
required

Quote token used