By default fetches the value of MaticX/USD
This document was generated automatically. Please see README Generator for more info.
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
POLYGON_RPC_URL | Polygon RPC URL | string | |||
POLYGON_CHAIN_ID | The chain id to connect to | string | 137 |
||
FANTOM_RPC_URL | Fantom RPC URL | string | |||
FANTOM_CHAIN_ID | The blockchain id to connect to | string | 250 |
||
BSC_RPC_URL | BSC RPC URL | string | |||
BSC_CHAIN_ID | The blockchain id to connect to | string | 56 |
There are no rate limits for this adapter.
Every EA supports base input parameters from this list
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
endpoint | The endpoint to use | string | bnbx, maticx, sftmx | maticx |
MaticX token price in USD.
maticx
is the only supported name for this endpoint.
There are no input parameters for this endpoint.
Request:
{
"id": "1",
"data": {
"endpoint": "maticx"
},
"debug": {
"cacheKey": "Q3XCND2iB5CU/2lKGBCT16/dPq0="
}
}
Response:
{
"jobRunID": "1",
"data": {
"result": 47732197
},
"result": 47732197,
"statusCode": 200,
"providerStatusCode": 200
}
sFTMx token price in USD.
sftmx
is the only supported name for this endpoint.
There are no input parameters for this endpoint.
Request:
{
"id": "1",
"data": {
"endpoint": "sftmx"
},
"debug": {
"cacheKey": "xJ+iPjUW3lBOVvhun6x6eoNkNhY="
}
}
Response:
{
"jobRunID": "1",
"data": {
"result": 26263763
},
"result": 26263763,
"statusCode": 200,
"providerStatusCode": 200
}
BNBx token price in USD.
bnbx
is the only supported name for this endpoint.
There are no input parameters for this endpoint.
Request:
{
"id": "1",
"data": {
"endpoint": "bnbx"
},
"debug": {
"cacheKey": "B4CBC4FYyPZBSbz59588HqQe+TU="
}
}
Response:
{
"jobRunID": "1",
"data": {
"result": 28917028197
},
"result": 28917028197,
"statusCode": 200,
"providerStatusCode": 200
}
MIT License