Fix Rates getTicker endpoint - resolve 404 error

The Strike API /rates/ticker endpoint returns all currency pairs in a single response, not individual pairs. Updated the implementation to:

- Remove incorrect currency pair parameter from endpoint URL
- Fetch all tickers and filter to requested pair client-side
- Add "All Currency Pairs" option to get all rates at once
- Add BTC/AUD and BTC/USDT currency pair options
- Improve error handling when requested pair not found

Fixes 404 "Resource not found" error when using Rates > Get Ticker operation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-10 17:16:30 +01:00
parent a62daa58d0
commit 4ee845e6cd
2 changed files with 25 additions and 2 deletions

View File

@ -32,12 +32,15 @@ export const ratesFields: INodeProperties[] = [
name: 'currencyPair',
type: 'options',
options: [
{ name: 'All Currency Pairs', value: 'all' },
{ name: 'BTC/USD', value: 'BTCUSD' },
{ name: 'BTC/EUR', value: 'BTCEUR' },
{ name: 'BTC/GBP', value: 'BTCGBP' },
{ name: 'BTC/AUD', value: 'BTCAUD' },
{ name: 'BTC/USDT', value: 'BTCUSDT' },
],
default: 'BTCUSD',
description: 'Currency pair for the ticker',
description: 'Currency pair for the ticker. Select "All Currency Pairs" to get rates for all available pairs.',
displayOptions: {
show: {
resource: ['rates'],