⚡Oracle
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
https://api.expand.network/oracle/getprice?asset=usdt{
"status": 200,
"msg": "success",
"data": {
"ChainLink": {
"roundId": "36893488147419104465",
"answer": "0.9996391",
"startedAt": "1710938687",
"updatedAt": "1710938687",
"answeredInRound": "36893488147419104465"
},
"WinkLink": {
"roundId": "184467",
"answer": "0.99999",
"startedAt": "1710994011",
"updatedAt": "1710994011",
"answeredInRound": "184467"
},
"Pyth": {
"roundId": null,
"answer": "0.9999603300000001",
"startedAt": null,
"updatedAt": null,
"answeredInRound": null
}
}
}Last updated

