Base URL https://api.currencylayer.com
This document was generated automatically. Please see README Generator for more info.
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
✅ | API_KEY | An API key that can be obtained from here | string | ||
API_ENDPOINT | string | https://api.currencylayer.com |
Every EA supports base input parameters from this list
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
endpoint | The endpoint to use | string | convert, forex, live, price | convert |
convert
is the only supported name for this endpoint.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | base | coin , from |
The symbol of the currency to query | string | ||||
✅ | quote | market , to |
The symbol of the currency to convert to | string | ||||
amount | An amount of the currency | number | 1 |
Request:
{
"id": "1",
"data": {
"endpoint": "convert",
"base": "BTC",
"quote": "USD",
"amount": 1
},
"debug": {
"cacheKey": "fE+e01CMPOlT/0yVAcTGT32JAlQ="
}
}
Response:
{
"jobRunID": "1",
"data": {
"success": true,
"terms": "https://currencylayer.com/terms",
"privacy": "https://currencylayer.com/privacy",
"query": {
"from": "BTC",
"to": "USD",
"amount": 1
},
"info": {
"timestamp": 1635800883,
"quote": 60535.74
},
"result": 60535.74
},
"result": 60535.74,
"statusCode": 200,
"providerStatusCode": 200
}
Returns a batched price comparison from one currency to a list of other currencies.
Supported names for this endpoint are: forex
, live
, price
.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | base | base , coin , from |
||||||
✅ | quote | market , quote , to |
||||||
amount |
There are no examples for this endpoint.
MIT License