Skip to content

Add Asset Price Information tool for cryptocurrency price data #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -329,6 +329,20 @@ Example query to Claude:

> "Buy $20 worth of OpenRouter credits."

### asset_price

Gets current prices of crypto assets in a specified currency.

Parameters:

- `assetSymbols`: Array of asset symbols to retrieve prices for (e.g., ["ETH", "USDC"])
- `currency`: The currency in which to return prices (default: USD)
- `includeMetadata`: Whether to include additional metadata like 24h change, market cap, etc. (default: false)

Example query to Claude:

> "What are the current prices of ETH, BTC, and USDC?"

## Security Considerations

- The configuration file contains sensitive information (API keys and seed phrases). Ensure it's properly secured and not shared.
47 changes: 47 additions & 0 deletions examples.md
Original file line number Diff line number Diff line change
@@ -198,3 +198,50 @@ _Claude uses the `buy_openrouter_credits` tool with the following parameters:_
6. **Verify contract interactions** - When interacting with smart contracts, verify the contract address and function parameters before confirming transactions.

7. **Use onramp responsibly** - When onramping funds, be aware of any fees or limits that may apply.

## Asset Price Information

### Checking Current Asset Prices

**You:** What are the current prices of ETH, BTC, and USDC?

**Claude:** I'll check the current prices for those assets.

_Claude uses the `asset_price` tool with the following parameters:_

- assetSymbols: ["ETH", "BTC", "USDC"]
- currency: "USD"

**Claude:** Here are the current prices:

- ETH: $3,520.45 USD
- BTC: $65,432.18 USD
- USDC: $1.00 USD

### Getting Detailed Market Information

**You:** Show me detailed market information for ETH and BTC in EUR.

**Claude:** I'll get detailed market information for those assets in EUR.

_Claude uses the `asset_price` tool with the following parameters:_

- assetSymbols: ["ETH", "BTC"]
- currency: "EUR"
- includeMetadata: true

**Claude:** Here's the detailed market information:

**ETH:**

- Current Price: €3,245.67 EUR
- Market Cap: €391.2 billion EUR
- 24h Volume: €15.8 billion EUR
- 24h Change: -2.3%

**BTC:**

- Current Price: €60,123.45 EUR
- Market Cap: €1.17 trillion EUR
- 24h Volume: €42.3 billion EUR
- 24h Change: +1.7%
Loading