Function fetch_price
Source pub async fn fetch_price(token_id: &str) -> Result<String, Box<dyn Error>>
Expand description
Fetches the price of a given token quoted in USDC using Jupiter API.
§Parameters
token_id: The token mint address as a string.
§Returns
The price of the token quoted in USDC as a string.