n8n-nodes-base
Version:
Base nodes of n8n
34 lines (30 loc) • 1.18 kB
text/typescript
/**
* CoinGecko Node - Version 1
* Discriminator: resource=coin, operation=candlestick
*/
/** Get a candlestick open-high-low-close chart for the selected currency */
export type CoinGeckoV1CoinCandlestickParams = {
resource: 'coin';
operation: 'candlestick';
/**
* The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
baseCurrency?: string | Expression<string>;
/**
* The second currency in the pair. For BTC:ETH this is ETH. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
quoteCurrency?: string | Expression<string>;
/**
* Return data for this many days in the past from now
*/
days?: '1' | '7' | '14' | '30' | '90' | '180' | '365' | 'max' | Expression<string>;
};
export type CoinGeckoV1CoinCandlestickOutput = {
time?: string;
};
export type CoinGeckoV1CoinCandlestickNode = {
type: 'n8n-nodes-base.coinGecko';
version: 1;
config: NodeConfig<CoinGeckoV1CoinCandlestickParams>;
output?: Items<CoinGeckoV1CoinCandlestickOutput>;
};