Skip to main content
GET
/
trade
/
v1
/
rates
/
indicative
/
{from}
/
{to}
Get indicative exchange rate
curl --request GET \
  --url https://api.staging.layer1.com/trade/v1/rates/indicative/{from}/{to} \
  --header 'Authorization: Bearer <token>'
{
  "from": {
    "asset": "BTC",
    "amount": "1.0"
  },
  "to": {
    "asset": "USD",
    "amount": "42500.00"
  },
  "rate": "42500.00"
}

Documentation Index

Fetch the complete documentation index at: https://exness-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

from
string
required

Source asset code (e.g., BTC, ETH, USD, EUR)

Required string length: 1 - 32
to
string
required

Target asset code (e.g., BTC, ETH, USD, EUR)

Required string length: 1 - 32

Query Parameters

amount
number<decimal>

Amount of source asset to convert. If not provided, defaults to 1.0

Required range: x >= 0.000001

Response

Indicative exchange rate retrieved successfully

from
object

Source amount and asset

to
object

Target amount and asset

rate
number

Exchange rate between the assets

Example:

1.2345