import type { INodeProperties } from 'n8n-workflow'; export const ratesOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['rates'], }, }, options: [ { name: 'Get Ticker', value: 'getTicker', description: 'Get current exchange rates', action: 'Get exchange rates', }, ], default: 'getTicker', }, ]; export const ratesFields: INodeProperties[] = [ // ---------------------------------- // rates:getTicker // ---------------------------------- { displayName: 'Currency Pair', 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. Select "All Currency Pairs" to get rates for all available pairs.', displayOptions: { show: { resource: ['rates'], operation: ['getTicker'], }, }, }, ];