2022-08-17 08:50:24 -07:00
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
2021-08-01 04:49:24 -07:00
|
|
|
|
|
|
|
export const tickerOperations: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2021-08-01 04:49:24 -07:00
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Get a ticker',
|
2021-08-01 04:49:24 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'get',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['ticker'],
|
2021-08-01 04:49:24 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const tickerFields: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'Ticker',
|
|
|
|
name: 'symbol',
|
|
|
|
type: 'string',
|
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['ticker'],
|
|
|
|
operation: ['get'],
|
2021-08-01 04:49:24 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
description: 'Stock symbol (ticker) to retrieve, e.g. <code>AAPL</code>',
|
|
|
|
},
|
|
|
|
];
|