Skip to content

Tero-Labs/ajv2-moola-rate-and-fee-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moola Oracle Dependent Data From Smart Contract

Serve Moola V2 oracle dependent, rate and fee related Data through REST Api directly from blockchain for alfajores deployment.

API documentation

API overview

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

API response format

  1. /get/getRateInUsd
'status',

'dateTime',

'coinName',

'RateInUsd',
  1. /get/getLiquidationPrice
'status',

'dateTime',

'data':
    'collateral',
    'collateralAssets': [
        {
            'currency',
            'liquidationPrice',
            'currentPrice',
            'priceCurrency'
        },
        ...
    ]
  1. /get/getFee
'status',

'dateTime',

'currency',

'activity',

'amount',

'securityFee'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages