# &#x20;Fluxbeam Token Price

#### FluxBeam Token Price Tool (`fluxbeam_token_price_tool`)

Fetches the current price of a specified Solana token in USD, utilizing the FluxBeam API. Useful for quick price checks.

{% hint style="info" %}
**Input:** Requires a Solana token contract `token_address`.
{% endhint %}

```python
class FluxBeamTokenPriceInput(BaseModel):
    token_address: str # The token address to check price on FluxBeam
```

**Key Functionality:**

* Retrieves the token's current price in USD from `data.fluxbeam.xyz`.
* Formats the price to 5 decimal places for consistency.

***

**Sample Usage Queries (How an AI might use it):**

* "What's the FluxBeam price for token `EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm`?"
* "Get the current price of `DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263` from FluxBeam."
* "Fetch the FluxBeam USD price for `4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R`."
* "Use FluxBeam to find the price of `HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3`."
* "Check FluxBeam for the price of mint `token_mint_address_placeholder`."
* "Price check `another_token_address` via FluxBeam."
* "FluxBeam price for `contract_addr_here`?"

***

```python
class FluxBeamTokenPriceTool(BaseTool):
    name: ClassVar[str] = "fluxbeam_token_price_tool"
    description: ClassVar[str] = "Get the current price of a token in USD (USD) from FluxBeam."
    args_schema: ClassVar[Type[BaseModel]] = FluxBeamTokenPriceInput
```

***

**Important:**

* Primarily designed for **asynchronous** execution (`_arun`). The synchronous version will return an informational message.
* Relies on the external `data.fluxbeam.xyz` API; functionality and data accuracy depend on this third-party service.
