Pool state
GET
/v1/pool
const url = 'https://api.tako.wtf/v1/pool';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tako.wtf/v1/poolRate, supply, TVL, claims, lending, insurance, bad debt, APR and APY from the latest snapshot.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
updatedAt
required
Unix seconds
integer
rate
required
Gram per takoGRAM
string
totalCoins
required
Amount in nanoGram, as a decimal string
string
totalShares
required
Amount in nanoGram, as a decimal string
string
pendingProfit
required
Profit still vesting into the rate
string
tvl
required
Balance plus Gram lent to validators
string
queued
required
Gram owed to unredeemed claims
string
lent
required
Amount in nanoGram, as a decimal string
string
insurance
required
Amount in nanoGram, as a decimal string
string
badDebt
required
Amount in nanoGram, as a decimal string
string
instantLiquidity
required
Gram available for instant withdrawals
string
apr
required
Annual rate of the profit vesting now, in percent
number | null
apy
required
Growth of the rate over the last 7 and 30 days and since the first snapshot, annualized, as a fraction
object
week
required
number | null
month
required
number | null
inception
required
number | null
Example generated
{ "updatedAt": 1, "rate": "example", "totalCoins": "example", "totalShares": "example", "pendingProfit": "example", "tvl": "example", "queued": "example", "lent": "example", "insurance": "example", "badDebt": "example", "instantLiquidity": "example", "apr": 1, "apy": { "week": 1, "month": 1, "inception": 1 }}No snapshot or stream capacity yet
Media typeapplication/json
object
error
required
string
Example generated
{ "error": "example"}