Get Rate for a Token Pair
Although the API checks for price impact and limits it at 15% by default, we highly suggest developers to add a client side double-check using a price oracle such as Coingecko in order to avoid making a loosing trade.
get
https://apiv4.paraswap.io
/v2/prices
๐Ÿง™Though fromDecimals and toDecimals are optional parameters it is highly recommended to add them while doing the pricing. This will allow you to get prices for all the tokens, including the ones which are also not listed by Paraswap.
Last modified 4mo ago
Copy link
Contents
get