- Add Strike API credentials configuration - Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates) - Add comprehensive operation descriptions for all resources - Include CLAUDE.MD documentation - Set up build configuration with TypeScript, ESLint, and Prettier 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
49 lines
1005 B
TypeScript
49 lines
1005 B
TypeScript
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: 'BTC/USD', value: 'BTCUSD' },
|
|
{ name: 'BTC/EUR', value: 'BTCEUR' },
|
|
{ name: 'BTC/GBP', value: 'BTCGBP' },
|
|
],
|
|
default: 'BTCUSD',
|
|
description: 'Currency pair for the ticker',
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['rates'],
|
|
operation: ['getTicker'],
|
|
},
|
|
},
|
|
},
|
|
];
|