Anchor documentation

anchor module provides a proxy to Anchor Protocol API

class anchor.AnchorAPI(bin_path='./app')

A proxy class to the Anchor Protocol

Parameters

bin_path – path to anchor_tool binary

Type

str, optional

__init__(bin_path='./app')

Intialize with a binary tool

get_anc_cap() float

Query current ANC market cap

Returns

a market cap

get_anc_price() float

Query current ANC price

:return a price :type: float

get_balance() str

Query protocol APY - annual percentage yield

Returns

json with APY

Type

str

get_ust_cap() float

Query current UST market cap

Returns

a market cap

get_ust_price() float

Query current ANC price

:return a price :type: float