> For the complete documentation index, see [llms.txt](https://www.lumolabs.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.lumolabs.ai/tools/jupiter-token-price.md).

# Jupiter Token Price

#### Jupiter Token Price Tool (`jupiter_token_price_tool`)

Fetches the current price in USD for one or more Solana tokens using their contract addresses, via the Jupiter API. Essential for getting up-to-date pricing information.

{% hint style="info" %}
**Input:** Requires one or more comma-separated Solana `token_addresses`.
{% endhint %}

```python
class JupiterTokenPriceInput(BaseModel):
    token_addresses: str # e.g., "So1111...1112,EPjF...TDt1v"
```

***

**Key Functionality:**

* Retrieves current USD prices for the provided Solana token addresses from `lite-api.jup.ag`.
* Can fetch prices for multiple token addresses in a single call.
* Prices are formatted to 6 decimal places.

***

**Sample Usage Queries (How an AI might use it):** *(Note: For queries using names/tickers, the system would first use a token identification tool to get addresses.)*

* "What's the Jupiter price for token `DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263`?"
* "Get the current price of Wrapped SOL (`So1111...1112`) and USDC (`EPjF...TDt1v`) from Jupiter."
* "Fetch Jupiter USD prices for Raydium and Serum."
* "Use Jupiter to find the price of Jito (`jtojt...mCL`)."
* "Check Jupiter for the price of mint `token_mint_address_placeholder`."
* "What are the current Jupiter prices for LUMO, FARTCOIN, and GOAT?"
* "Jupiter price check for `contract_addr1,contract_addr2`."

***

```python
class JupiterTokenPriceTool(BaseTool):
    name: ClassVar[str] = "jupiter_token_price_tool"
    description: ClassVar[str] = "Get the current price of one or more Solana tokens in USD from Jupiter..."
    args_schema: ClassVar[Type[BaseModel]] = JupiterTokenPriceInput
```

***

**Important:**

* This tool operates primarily **asynchronously** (`_arun`). The synchronous version returns an informational message.
* Relies on the external Jupiter API (`lite-api.jup.ag`); functionality and data accuracy depend on this service.
* Input must be valid Solana token contract addresses, comma-separated if multiple.
