Documentation ¶
Index ¶
- type ActiveAccount
- type ActiveAccounts
- type Addr
- type Apr
- type Aprs
- type Dashboard
- type Duration
- type Fee
- type Fees
- type PoolDetail
- type Pools
- type Price
- type Prices
- type Recent
- type Statistic
- type StatisticItem
- type Token
- type TokenChart
- type TokenValue
- type Tokens
- type Tvl
- type Tvls
- type Tx
- type TxType
- type Txs
- type Volume
- type Volumes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveAccount ¶
type ActiveAccounts ¶
type ActiveAccounts = []ActiveAccount
type Dashboard ¶
type Dashboard interface { Recent() (Recent, error) RecentOf(addr Addr) (Recent, error) Statistic(...Addr) (Statistic, error) Pools(tokens ...Addr) (Pools, error) PoolDetail(Addr) (PoolDetail, error) Tokens() (Tokens, error) Token(addr Addr) (Token, error) TokenVolumes(addr Addr, itv Duration) (TokenChart, error) TokenTvls(addr Addr, itv Duration) (TokenChart, error) TokenPrices(addr Addr, itv Duration) (TokenChart, error) Txs(txType TxType, addr ...Addr) (Txs, error) TxsOfToken(txType TxType, token Addr) (Txs, error) Volumes(Duration) (Volumes, error) VolumesOf(Addr, Duration) (Volumes, error) Fees(Duration) (Fees, error) FeesOf(Addr, Duration) (Fees, error) Tvls(Duration) (Tvls, error) TvlsOf(Addr, Duration) (Tvls, error) Aprs(Duration) (Aprs, error) AprsOf(Addr, Duration) (Aprs, error) }
type PoolDetail ¶
type Recent ¶
type Recent struct { PoolExists bool `gorm:"pool_exists"` Volume string `gorm:"volume"` VolumeChangeRate float32 `gorm:"volume_change_rate"` Fee string `gorm:"fee"` FeeChangeRate float32 `gorm:"fee_change_rate"` Tvl string `gorm:"tvl"` TvlChangeRate float32 `gorm:"tvl_change_rate"` Apr float32 `gorm:"apr"` AprChangeRate float32 `gorm:"apr_change_rate"` }
type Statistic ¶
type Statistic = []StatisticItem
type StatisticItem ¶
type TokenChart ¶
type TokenChart []TokenValue
type TokenValue ¶
Click to show internal directories.
Click to hide internal directories.