> 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.lumolabs.ai/tools/jupiter-token-price.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
