Price

Get a list of prices or the price for a single DEX
/price
https://api.dex.ag/price?from=ETH&to=DAI&fromAmount=1&dex=ag

Parameter

Description

from

The token you want to send (input)

to

The token you want to receive (output)

fromAmount (optional*)

The amount of "from" token you want to send

toAmount (optional*)

The amount of "to" token you want to receive

dex

A specific DEX (Uniswap), ag (aggregator), all (even external sources)

discluded

Dex's to disclude from the aggregator. Eg discluded=bancor

*Note: either fromAmount or toAmount must be specified.

Response: the price for a single DEX or a list of prices.

Value

Description

price

Price denoted in the "from" token (eg ETH)

dex

DEX providing the price (eg Uniswap)

pair

‚Äč

base

Base token of the trading pair

quote

Quote token of the trading pair