⚡Oracles
Provides connectivity across the various Oracles available on the EVM and Non-EVM chains.
Following are the common functions implemented for all the Oracle protocols:-
Name
Type
Description
getprice
Read
Get the Price(in USDT) of a token on either all or the specified protocol.
getsupportedtokens
Read
Get the list of supported tokens on Expand.network, for the specified oracle.
/getprice
Get the Price(in USDT) of a token.
GET https://api.expand.network/oracle/getprice
Query Parameters
Name
Type
Description
asset*
String
Name of the token, whose price is to be fetched.
timestamp
String
Specify the particular point in time for which we have to fetch the price.
https://api.expand.network/oracle/getprice?asset=usdc×tamp=1714030330{
"status": 200,
"msg": "success",
"data": {
"ChainLink": {
"priceFeedAddress": "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6",
"roundId": "36893488147419104863",
"answer": "0.99994098",
"startedAt": "1713945803",
"updatedAt": "1713945803",
"answeredInRound": "36893488147419104863"
},
"Pyth": {
"priceFeedAddress": "eaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a",
"roundId": null,
"answer": "1.000125",
"startedAt": null,
"updatedAt": null,
"answeredInRound": null
},
"averagePrice": "1.00003"
}
}Last updated

