Serve Moola V2 oracle dependent, rate and fee related Data through REST Api directly from blockchain for alfajores
deployment.
API Endpoints | Query Params | Description |
---|---|---|
/get/getRateInUsd | coin_name | Get the price of the specified coin in USD rate |
/get/getLiquidationPrice | userPublicKey | Get liquidation price for each collteral assets |
get/getFee | userPublicKey,activityType,currency{Opt} | Get associated fee for doing the specific activity with the specific asset |
/get/getRateInUsd
'status',
'dateTime',
'coinName',
'RateInUsd',
/get/getLiquidationPrice
'status',
'dateTime',
'data':
'collateral',
'collateralAssets': [
{
'currency',
'liquidationPrice',
'currentPrice',
'priceCurrency'
},
...
]
/get/getFee
'status',
'dateTime',
'currency',
'activity',
'amount',
'securityFee'