Getting Market Information

General information about a stablecoin market can be retrieved via the below endpoint:

Endpoint Name

Method

Description

GET

Gets information about the specified stablecoin market

Get stablecoin information

GET https://ropsten-api.anchorprotocol.com/api/v1/stablecoin_info/{stable_denom}

GET /api/v1/stablecoin_info/{stable_denom} allows you to query the current status of money market with stable_denom as the quote.

Query Parameters

Name
Type
Description

stable_denom

string

Money market quote stablecoin denom Example: "uusd"

{
    // Denom
    // denom of the stablecoin money market
    “stable_denom”: “uusd”,
    
    // LiquidTerra
    // liquidTerra is the currently available stablecoin pool size in money market.
    “liquid_terra”: “100000”,
    
    // ExchangeRate
    // exchange rate between aTerra <> stablecoin (e.g. aUST <> UST)
    “exchange_rate”: “1.0123”,
    
    // LastUpdated
    // Unix timestamp at which the last update to this response has been made
    "last_updated": 1608710761,
    
    // ##################################################
    // # Below fields are borrower-related information. #
    // ##################################################
    
    // BorrowedTerra
    // Sum of all borrowed liabilities in this money market
    "borrowed_terra": "1000000",
    
    // UtilizationRatio
    // Ratio between borrowed deposit and total stablecoin deposit  
    "utilization_ratio": "0.5",
    
    // BorrowInterest
    // Interest rate per block
    "borrow_interest": "0.000000005707763",
}

Last updated

Was this helpful?