market_data_exchange_rates
Get exchange rates between two crypto assets or fiat currencies using asset symbols (e.g., BTC to USD) or asset IDs. Retrieve current market data for any asset pair.
Instructions
Market Data exchange rates.
Actions: • get-exchange-rate-by-asset-symbols: Get exchange rate between two assets by symbol (e.g. BTC, USD) • get-exchange-rate-by-asset-ids: Get exchange rate between two assets by asset ID
Credits by action (source: OpenAPI): • get-exchange-rate-by-asset-ids: 10 • get-exchange-rate-by-asset-symbols: 10
Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| context | No | Optional context for the request - echoed back in response | |
| toAssetId | No | To asset ID - for get-exchange-rate-by-asset-ids | |
| fromAssetId | No | From asset ID - for get-exchange-rate-by-asset-ids | |
| toAssetSymbol | No | To asset symbol (e.g. USD) - for get-exchange-rate-by-asset-symbols | |
| fromAssetSymbol | No | From asset symbol (e.g. BTC) - for get-exchange-rate-by-asset-symbols |