Skip to main content
POST
/
rate-oracle
/
rates
Get Rates
curl --request POST \
  --url http://localhost:8000/rate-oracle/rates \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "trading_pairs": [
    "<string>"
  ]
}
'
{
  "source": "<string>",
  "quote_token": "<string>",
  "rates": {}
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request for getting rates.

trading_pairs
string[]
required

List of trading pairs to get rates for (e.g., ['BTC-USDT', 'ETH-USDT'])

Response

Successful Response

Response containing rates for trading pairs.

source
string
required

Rate oracle source used

quote_token
string
required

Quote token used

rates
Rates · object
required

Mapping of trading pairs to their rates (None if rate not found)