Use this adapter for connecting to AlphaVantage's API from a Chainlink node.
Base URL https://www.alphavantage.co/query
This document was generated automatically. Please see README Generator for more info.
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
API_ENDPOINT | string | https://www.alphavantage.co/query |
|||
✅ | API_KEY | An API key that can be obtained from here | string |
Every EA supports base input parameters from this list
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
endpoint | The endpoint to use | string | forex, price | forex |
Returns the exchange rate from a currency's current price to a given currency.
NOTE: the price
endpoint is temporarily still supported, however, is being deprecated. Please use the forex
endpoint instead."
Supported names for this endpoint are: forex
, price
.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | base | coin , from |
The symbol of the currency to query. The full list of options can be found here Physical Currency list or Cryptocurrency list | string | ||||
✅ | quote | market , to |
The symbol of the currency to convert to. The full list of options can be found here Physical Currency list or Cryptocurrency list | string |
Request:
{
"id": "1",
"data": {
"endpoint": "forex",
"base": "GBP",
"quote": "USD"
},
"debug": {
"cacheKey": "nNGTBPQMuNeDIBcqHmoSuDeMaVw="
}
}
Response:
{
"jobRunID": "1",
"data": {
"Realtime Currency Exchange Rate": {
"1. From_Currency Code": "GBP",
"2. From_Currency Name": "British Pound Sterling",
"3. To_Currency Code": "USD",
"4. To_Currency Name": "United States Dollar",
"5. Exchange Rate": "1.36606000",
"6. Last Refreshed": "2021-11-01 19:33:43",
"7. Time Zone": "UTC",
"8. Bid Price": "1.36602600",
"9. Ask Price": "1.36612700"
},
"result": 1.36606
},
"result": 1.36606,
"statusCode": 200,
"providerStatusCode": 200
}
MIT License