Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
endpoint | The endpoint to use | eod, stock, forex, crypto | stock |
The adapter takes the following environment variables:
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | API_KEY |
An API key that can be obtained from the data provider's dashboard | ||
WS_SOCKET_KEY |
A WEBSOCKET key that can be obtained from the data provider's dashboard | |||
STOCK_WS_API_ENDPOINT |
The Websocket endpoint to connect to for stock data | wss://e4s39ar3mr.finage.ws:7002 |
||
FOREX_WS_API_ENDPOINT |
The Websocket endpoint to connect to for forex data | wss://w29hxx2ndd.finage.ws:8001 |
||
CRYPTO_WS_API_ENDPOINT |
The Websocket endpoint to connect to for crypto data | wss://72x8wsyx7t.finage.ws:6008 |
https://finage.co.uk/docs/api/stock-market-previous-close
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | base , from , or symbol |
The symbol of the currency to query | BTC , ETH , USD |
https://finage.co.uk/docs/api/stock-last-quote
The result will be calculated as the midpoint between the ask and the bid.
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | base , from , or symbol |
The symbol of the currency to query |
{
"id": "1",
"data": {
"from": "UK100"
}
}
{
"jobRunID": "1",
"data": {
"currencies": [
{
"name": "UK100",
"value": 6395.5,
"change": 61,
"difference": 0.96
}
],
"lastUpdate": "2020-11-27T17:07:02",
"lastUpdate_Timestamp": "1606496822",
"result": 6395.5
},
"result": 6395.5,
"statusCode": 200
}
https://finage.co.uk/docs/api/forex-last-quote
The result will be calculated as the midpoint between the ask and the bid.
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | base , from , or symbol |
The symbol of the currency to query | ||
✅ | quote , to , or market |
The symbol of the currency to convert to |
{
"id": "1",
"data": {
"from": "GBP",
"to": "USD"
}
}
{
"jobRunID": "1",
"data": {
"currencies": [
{
"name": "UK100",
"value": 6395.5,
"change": 61,
"difference": 0.96
}
],
"lastUpdate": "2020-11-27T17:07:02",
"lastUpdate_Timestamp": "1606496822",
"result": 6395.5
},
"result": 6395.5,
"statusCode": 200
}
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | base , from , or symbol |
The symbol of the currency to query | ||
✅ | quote , to , or market |
The symbol of the currency to convert to |
{
"id": "1",
"data": {
"from": "BTC",
"to": "USD"
}
}
{
"jobRunID": "1",
"result": 51200,
"statusCode": 200,
"data": {
"result": 51200
}
}