Retrieve an indicative exchange rate between two assets using mid-market/ticker rates. The rate is calculated based on current market data and provides an estimate for conversion purposes. If no amount is specified, the rate is calculated for 1 unit of the source asset.
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.
Source asset code (e.g., BTC, ETH, USD, EUR)
1 - 32Target asset code (e.g., BTC, ETH, USD, EUR)
1 - 32Amount of source asset to convert. If not provided, defaults to 1.0
x >= 0.000001curl --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"
}