Stats#

class defichain.ocean.Stats(ocean)#
get() {}#

Get stats of DeFi Blockchain

Returns:

(json string) {count: {blocks: int, tokens: int, prices: int, masternodes: int}, tvl: {total: float, dex: float, loan: float, masternodes: float}, burned: {total: float, address: float, fee: int, auction: float, payback: float, emission: float}, price: {usd: float, usdt: float}, masternodes: {locked: [{ weeks: int, tvl: float, count: int}]}, emission: {total: float, masternode: float, dex: float, community: float, anchor: float, burned: float}, loan: {count: {schemes: int, loanTokens: int, collateralTokens: int, openVaults: int, openAuctions: int}, value: {collateral: float, loan: float}}, blockchain: {difficulty: float}, net: {version: int, subversion: str, protocolversion: int}}

Example:

>>> ocean.stats.get()
getRewardDistribution() {}#

Get reward distribution of DeFi Blockchain

Returns:

(json string) {masternode: int, community: int, anchor: int, liquidity: int, loan: int, options: int, unallocated: int}

Example:

>>> ocean.stats.getRewardDistribution()
getSupply() {}#

Get supply of DeFi Blockchain

Returns:

(json string) {max: float, total: float, burned: float, circulating: float}

Example:

>>> ocean.stats.getSupply()
getBurn() {}#

Get burn info of DeFi Blockchain

Returns:

(json string) {address: str, amount: str, tokens: str[], feeburn: float, emissionburn: float, auctionburn: float, paybackburn: float, paybackburntokens: str[], dexfeetokens: str[], dfipaybackfee: float, dfipaybacktokens: str[], paybackfees: str[], paybacktokens: str[], dfip2203: str[], dfip2206f: str[]}

Example:

>>> ocean.stats.getBurn()