/preFetch

Takes an array of tokens that need pricing. Each token needs an address, a chain identifier, and the type of price desired.



Valid values for 'priceType' are: dexHighestLiquidity, coingecko.



For the 'chain' ifeld, pull the list of valid names from the /chains endpoint.
Block number or timestamp are optional (you only need to pass one of those, or none if you want to pre-fetch the token for current time).


Returns an array of results for each token that you passed. If any of the results have a status of "findingSolution", you can call the regular /price endpoint for a final answer on that token in about ~2 minutes.

Language
Click Try It! to start a request and see the response here!