closing
endpoint provides the closing price of the previous day as detailed in Twelvedata documentation.
price
endpoint provides the real-time price as detailed in Twelvedata documentation.
This document was generated automatically. Please see README Generator for more info.
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
✅ | API_KEY | API key for Twelvedata | string | ||
API_ENDPOINT | The endpoint for your Twelvedata | string | https://api.twelvedata.com/ |
Every EA supports base input parameters from this list
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
endpoint | The endpoint to use | string | closing, crypto, eod, forex, price, stock | closing |
This closing
endpoint provides the closing price of the previous day as detailed in Twelvedata documentation.
Supported names for this endpoint are: closing
, eod
.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | base | coin , from , market , symbol |
The symbol of the currency to query | string |
Request:
{
"id": "1",
"data": {
"endpoint": "closing",
"base": "VXX"
},
"debug": {
"cacheKey": "ZWDHGGXpQ0kNUlJ7WAZMGVmrHww="
}
}
Response:
{
"jobRunID": "1",
"data": {
"symbol": "VXX",
"exchange": "CBOE",
"currency": "USD",
"datetime": "2021-11-05",
"close": "20.86750",
"result": 20.8675
},
"result": 20.8675,
"statusCode": 200,
"providerStatusCode": 200
}
This price
endpoint provides the real-time price as detailed in Twelvedata documentation.
Supported names for this endpoint are: crypto
, forex
, price
, stock
.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | base | coin , from , market , symbol |
The symbol of the currency to query | string |
Request:
{
"id": "1",
"data": {
"endpoint": "price",
"base": "VXX"
},
"debug": {
"cacheKey": "vRWHl92FGmzqMko1oZyLtKloXNI="
}
}
Response:
{
"jobRunID": "1",
"data": {
"price": "20.86750",
"result": 20.8675
},
"result": 20.8675,
"statusCode": 200,
"providerStatusCode": 200
}
MIT License