Skip to main content
POST
/
Get exchange rates between token pairs across blockchains.
curl --request POST \
  --url https://exchange-rates.gluex.xyz/ \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "domestic_blockchain": "ethereum",
    "domestic_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "foreign_blockchain": "ethereum",
    "foreign_token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
  }
]'
[
  {
    "domestic_blockchain": "<string>",
    "domestic_token": "<string>",
    "foreign_blockchain": "<string>",
    "foreign_token": "<string>",
    "price": 123
  }
]

Body

application/json · object[]
domestic_blockchain
string
default:ethereum
required

Identifier for the domestic blockchain network

domestic_token
string
default:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
required

Address of the domestic token

foreign_blockchain
string
default:ethereum
required

Identifier for the foreign blockchain network

foreign_token
string
default:0xdac17f958d2ee523a2206206994597c13d831ec7
required

Address of the foreign token

Response

Successful response

domestic_token
string
required

Address of the domestic token

foreign_token
string
required

Address of the foreign token

price
number
required

Exchange rate between the two tokens

domestic_blockchain
string

Identifier for the domestic blockchain network

foreign_blockchain
string

Identifier for the foreign blockchain network