coinGecko.json•10.4 kB
{
"nodeType": "n8n-nodes-base.coinGecko",
"displayName": "CoinGecko",
"description": "Consume CoinGecko API",
"version": 1,
"properties": [
{
"name": "searchBy",
"displayName": "Search By",
"type": "options",
"default": "coinId",
"description": "Search by coin ID or contract address",
"required": true,
"options": [
{
"name": "Coin ID",
"value": "coinId"
},
{
"name": "Contract Address",
"value": "contractAddress"
}
],
"displayOptions": {
"show": {
"operation": [
"get",
"marketChart",
"price"
],
"resource": [
"coin"
]
}
}
},
{
"name": "coinId",
"displayName": "Coin Name or ID",
"type": "options",
"default": "",
"description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
"placeholder": "bitcoin",
"required": true,
"displayOptions": {
"show": {
"operation": [
"get"
],
"resource": [
"coin"
]
}
}
},
{
"name": "baseCurrency",
"displayName": "Base Currency Name or ID",
"type": "options",
"default": "",
"description": "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>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"candlestick"
],
"resource": [
"coin"
]
}
}
},
{
"name": "baseCurrencies",
"displayName": "Base Currency Names or IDs",
"type": "multiOptions",
"default": [],
"description": "The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "bitcoin",
"required": true,
"displayOptions": {
"show": {
"operation": [
"price"
],
"resource": [
"coin"
],
"searchBy": [
"coinId"
]
}
}
},
{
"name": "platformId",
"displayName": "Platform ID",
"type": "options",
"default": "ethereum",
"description": "The ID of the platform issuing tokens",
"required": true,
"options": [
{
"name": "Ethereum",
"value": "ethereum"
}
],
"displayOptions": {
"show": {
"operation": [
"get",
"marketChart",
"price"
],
"resource": [
"coin"
],
"searchBy": [
"contractAddress"
]
}
}
},
{
"name": "contractAddress",
"displayName": "Contract Address",
"type": "string",
"default": "",
"description": "Token's contract address",
"required": true,
"displayOptions": {
"show": {
"operation": [
"get",
"marketChart"
],
"resource": [
"coin"
],
"searchBy": [
"contractAddress"
]
}
}
},
{
"name": "contractAddresses",
"displayName": "Contract Addresses",
"type": "string",
"default": "",
"description": "The contract address of tokens, comma-separated",
"required": true,
"displayOptions": {
"show": {
"operation": [
"price"
],
"resource": [
"coin"
],
"searchBy": [
"contractAddress"
]
}
}
},
{
"name": "quoteCurrency",
"displayName": "Quote Currency Name or ID",
"type": "options",
"default": "",
"description": "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>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"candlestick",
"marketChart"
],
"resource": [
"coin"
]
}
}
},
{
"name": "quoteCurrencies",
"displayName": "Quote Currency Names or IDs",
"type": "multiOptions",
"default": [],
"description": "The second currency in the pair. For BTC:ETH this is ETH. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"price"
],
"resource": [
"coin"
]
}
}
},
{
"name": "days",
"displayName": "Range (Days)",
"type": "options",
"default": "",
"description": "Return data for this many days in the past from now",
"required": true,
"options": [
{
"name": "1",
"value": "1"
},
{
"name": "7",
"value": "7"
},
{
"name": "14",
"value": "14"
},
{
"name": "30",
"value": "30"
},
{
"name": "90",
"value": "90"
},
{
"name": "180",
"value": "180"
},
{
"name": "365",
"value": "365"
},
{
"name": "Max",
"value": "max"
}
],
"displayOptions": {
"show": {
"operation": [
"marketChart",
"candlestick"
],
"resource": [
"coin"
]
}
}
},
{
"name": "date",
"displayName": "Date",
"type": "dateTime",
"default": "",
"description": "The date of data snapshot",
"required": true,
"displayOptions": {
"show": {
"operation": [
"history"
],
"resource": [
"coin"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"operation": [
"getAll",
"market",
"ticker"
],
"resource": [
"coin"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 100,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 500
},
"displayOptions": {
"show": {
"operation": [
"getAll",
"market",
"ticker"
],
"resource": [
"coin"
],
"returnAll": [
false
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Filter results by comma-separated list of coin ID",
"placeholder": "Add option",
"options": [
{
"name": "ids",
"displayName": "Coin IDs",
"type": "string",
"default": "",
"description": "Filter results by comma-separated list of coin ID",
"placeholder": "bitcoin"
}
],
"displayOptions": {
"show": {
"resource": [
"coin"
],
"operation": [
"market"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "getAll",
"description": "Get a candlestick open-high-low-close chart for the selected currency",
"options": [
{
"name": "Candlestick",
"value": "candlestick",
"description": "Get a candlestick open-high-low-close chart for the selected currency"
},
{
"name": "Get",
"value": "get",
"description": "Get current data for a coin"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many coins"
},
{
"name": "History",
"value": "history",
"description": "Get historical data (name, price, market, stats) at a given date for a coin"
},
{
"name": "Market",
"value": "market",
"description": "Get prices and market related data for all trading pairs that match the selected currency"
},
{
"name": "Market Chart",
"value": "marketChart",
"description": "Get historical market data include price, market cap, and 24h volume (granularity auto)"
},
{
"name": "Price",
"value": "price",
"description": "Get the current price of any cryptocurrencies in any other supported currencies that you need"
},
{
"name": "Ticker",
"value": "ticker",
"description": "Get coin tickers"
}
],
"displayOptions": {
"show": {
"resource": [
"coin"
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "coin",
"options": [
{
"name": "Coin",
"value": "coin"
},
{
"name": "Event",
"value": "event"
}
]
}
],
"credentialsConfig": [],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}