Skip to main content

Get Token Price

Gets the token price of the asset_out based in reference to the asset_in.

Request URL

https://api.euclidprotocol.com/api/v1/token/price

Curl

curl -X 'POST' \
'https://api.euclidprotocol.com/api/v1/token/price' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"asset_in": "usdt",
"asset_out": "nibi"
}'

Parameters

FieldTypeDescription
asset_inStringThe identifier of the asset_in.
asset_outStringThe identifier of the asset_out.

Example Response

{
"amount": 1.0009282130745838
}