Get the latest fungible token daily DEX rate
Get the latest daily DEX rate for a fungible token pair using the source token contract package hash and target token contract package hash.
GET /ft/{contract_package_hash}/daily-dex-rates/latestQuery params
Query param
Description
target_contract_package_hash
Target token contract package hash for conversion (required)
dex_id
DEX identifier
Sorting
None
Optional properties
None
Response
Example
curl -X 'GET' \
'https://api.testnet.cspr.cloud/ft/0f6b7e1a8d6e4f1b5a2c3d4e5f60718293a4b5c6d7e8f90123456789abcdef12/daily-dex-rates/latest?target_contract_package_hash=ad0cd4ef3cfd9e7222706786e51773af771f063ecce4606282999a7a6d6ac495&dex_id=1' \
-H 'accept: application/json' \
-H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'Last updated
