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:
@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user