Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GeckoterminalOHLCVResponse ¶
type GeckoterminalOHLCVResponse struct {
Data struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes struct {
OhlcvList [][]float64 `json:"ohlcv_list"`
} `json:"attributes"`
} `json:"data"`
Meta struct {
Base struct {
Address string `json:"address"`
Name string `json:"name"`
Symbol string `json:"symbol"`
CoingeckoCoinID any `json:"coingecko_coin_id"`
} `json:"base"`
Quote struct {
Address string `json:"address"`
Name string `json:"name"`
Symbol string `json:"symbol"`
CoingeckoCoinID any `json:"coingecko_coin_id"`
} `json:"quote"`
} `json:"meta"`
}
type GeckoterminalResponse ¶
type GeckoterminalResponse struct {
Data struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes struct {
BaseTokenPriceUsd string `json:"base_token_price_usd"`
BaseTokenPriceNativeCurrency string `json:"base_token_price_native_currency"`
QuoteTokenPriceUsd string `json:"quote_token_price_usd"`
QuoteTokenPriceNativeCurrency string `json:"quote_token_price_native_currency"`
BaseTokenPriceQuoteToken string `json:"base_token_price_quote_token"`
QuoteTokenPriceBaseToken string `json:"quote_token_price_base_token"`
Address string `json:"address"`
Name string `json:"name"`
PoolCreatedAt time.Time `json:"pool_created_at"`
FdvUsd string `json:"fdv_usd"`
MarketCapUsd interface{} `json:"market_cap_usd"`
PriceChangePercentage struct {
M5 string `json:"m5"`
H1 string `json:"h1"`
H6 string `json:"h6"`
H24 string `json:"h24"`
} `json:"price_change_percentage"`
Transactions struct {
M5 struct {
Buys int `json:"buys"`
Sells int `json:"sells"`
Buyers int `json:"buyers"`
Sellers int `json:"sellers"`
} `json:"m5"`
M15 struct {
Buys int `json:"buys"`
Sells int `json:"sells"`
Buyers int `json:"buyers"`
Sellers int `json:"sellers"`
} `json:"m15"`
M30 struct {
Buys int `json:"buys"`
Sells int `json:"sells"`
Buyers int `json:"buyers"`
Sellers int `json:"sellers"`
} `json:"m30"`
H1 struct {
Buys int `json:"buys"`
Sells int `json:"sells"`
Buyers int `json:"buyers"`
Sellers int `json:"sellers"`
} `json:"h1"`
H24 struct {
Buys int `json:"buys"`
Sells int `json:"sells"`
Buyers int `json:"buyers"`
Sellers int `json:"sellers"`
} `json:"h24"`
} `json:"transactions"`
VolumeUsd struct {
M5 string `json:"m5"`
H1 string `json:"h1"`
H6 string `json:"h6"`
H24 string `json:"h24"`
} `json:"volume_usd"`
ReserveInUsd string `json:"reserve_in_usd"`
} `json:"attributes"`
Relationships struct {
BaseToken struct {
Data struct {
ID string `json:"id"`
Type string `json:"type"`
} `json:"data"`
} `json:"base_token"`
QuoteToken struct {
Data struct {
ID string `json:"id"`
Type string `json:"type"`
} `json:"data"`
} `json:"quote_token"`
Dex struct {
Data struct {
ID string `json:"id"`
Type string `json:"type"`
} `json:"data"`
} `json:"dex"`
} `json:"relationships"`
} `json:"data"`
}
type StickerConfig ¶
type StickerUpdater ¶
type StickerUpdater struct {
// contains filtered or unexported fields
}
func InitStickerUpdater ¶
func (*StickerUpdater) Run ¶
func (su *StickerUpdater) Run(name string) error
func (*StickerUpdater) RunAll ¶
func (su *StickerUpdater) RunAll() error
Click to show internal directories.
Click to hide internal directories.