Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Currency string `json:"currency" db:"currency"` Total fixedpoint.Value `json:"total" db:"total"` Locked fixedpoint.Value `json:"lock" db:"lock" ` Available fixedpoint.Value `json:"available" db:"available"` Borrowed fixedpoint.Value `json:"borrowed" db:"borrowed"` Interest fixedpoint.Value `json:"interest" db:"interest"` NetAsset fixedpoint.Value `json:"netAsset" db:"net_asset"` // NetAssetInUSD is net asset in USD NetAssetInUSD fixedpoint.Value `json:"netAssetInUSD" db:"net_asset_in_usd"` // NetAssetInBTC is net asset in BTC NetAssetInBTC fixedpoint.Value `json:"netAssetInBTC" db:"net_asset_in_btc"` Debt fixedpoint.Value `json:"debt" db:"debt"` DebtInUSD fixedpoint.Value `json:"debtInUSD" db:"debt_in_usd"` InterestInUSD fixedpoint.Value `json:"interestInUSD" db:"interest_in_usd"` Time time.Time `json:"time" db:"time"` PriceInUSD fixedpoint.Value `json:"priceInUSD" db:"price_in_usd"` }
type Map ¶
func (Map) InUSD ¶
func (m Map) InUSD() (total fixedpoint.Value)
func (Map) SlackAttachment ¶
func (m Map) SlackAttachment() slack.Attachment
Click to show internal directories.
Click to hide internal directories.