Files
Agent-n8n/n8n-n8n-1.109.2/packages/nodes-base/nodes/Marketstack/descriptions/ExchangeDescription.ts

42 lines
826 B
TypeScript
Raw Normal View History

2025-09-08 04:48:28 +08:00
import type { INodeProperties } from 'n8n-workflow';
export const exchangeOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
options: [
{
name: 'Get',
value: 'get',
action: 'Get an exchange',
},
],
default: 'get',
displayOptions: {
show: {
resource: ['exchange'],
},
},
},
];
export const exchangeFields: INodeProperties[] = [
{
displayName: 'Exchange',
name: 'exchange',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['exchange'],
operation: ['get'],
},
},
default: '',
description:
'Stock exchange to retrieve, specified by <a href="https://en.wikipedia.org/wiki/Market_Identifier_Code">Market Identifier Code</a>, e.g. <code>XNAS</code>',
},
];