Documentation ¶
Index ¶
- type CandleTicker
- type CurrencyData
- type EventHistory
- type EventRaw
- type GasPrice
- type MarketInfo
- type QuoInfo
- type Rate
- type RateHistory
- type RateInfo
- type RateUSD
- type RateUSDCG
- type Rates
- type ResultRpc
- type RightMarketInfo
- type StepRate
- type Token
- type TokenAPI
- type TokenConfig
- type TokenGeneralInfo
- type TokenInfo
- type TokenInfoCoinGecko
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CandleTicker ¶
type CurrencyData ¶
type EventHistory ¶
type MarketInfo ¶
func NewMarketInfo ¶
func NewMarketInfo(quotes map[string]QuoInfo, rates *Rates) *MarketInfo
type RateHistory ¶
type RateInfo ¶
type RateInfo struct { LastSell string `json:"last_sell"` LastBuy string `json:"last_buy"` HistoryRecord map[int64]*RateHistory `json:"history_record"` }
type RateUSDCG ¶
type RateUSDCG struct { MarketData struct { CurrentPrice struct { USD float64 `json:"usd"` } `json:"current_price"` } `json:"market_data"` }
type RightMarketInfo ¶
type Token ¶
type Token struct { Name string `json:"name"` Symbol string `json:"symbol"` Address string `json:"address"` Decimal int `json:"decimals"` DelistTime uint64 `json:"delist_time"` CGId string `json:"cg_id"` Priority bool `json:"priority"` TokenID string `json:"token_id"` }
func TokenAPIToToken ¶
type TokenConfig ¶
type TokenGeneralInfo ¶
type TokenInfo ¶
type TokenInfo struct { TokenSymbol string `json:"symbol"` CirculatingSupply string `json:"circulating_supply"` TotalSupply string `json:"total_supply"` MaxSupply string `json:"max_supply"` MarketCap string `json:"market_cap"` SellPrice string `json:"sell_price"` BuyPrice string `json:"buy_price"` Last7days map[uint64]CandleTicker `json:"last_7d"` }
type TokenInfoCoinGecko ¶
type TokenInfoCoinGecko struct { MarketData struct { MarketCap CurrencyData `json:"market_cap"` Volume24H CurrencyData `json:"total_volume"` Change24H float64 `json:"price_change_percentage_24h"` } `json:"market_data"` }
func (TokenInfoCoinGecko) ToTokenInfoCMC ¶
func (tokenInfo TokenInfoCoinGecko) ToTokenInfoCMC() TokenGeneralInfo
Click to show internal directories.
Click to hide internal directories.