Documentation
¶
Index ¶
- func InitPairController(s service.Getter[coingeckoService.Pair], route *gin.RouterGroup, ...) controller.PairController
- func InitTickerController(s service.Getter[coingeckoService.Ticker], route *gin.RouterGroup, ...) controller.TickerController
- type PairRes
- type PairsRes
- type TickerRes
- type TickersRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPairController ¶
func InitPairController(s service.Getter[coingeckoService.Pair], route *gin.RouterGroup, logger logging.Logger) controller.PairController
func InitTickerController ¶
func InitTickerController(s service.Getter[coingeckoService.Ticker], route *gin.RouterGroup, logger logging.Logger) controller.TickerController
Types ¶
type TickerRes ¶
type TickerRes struct {
TickerId string `json:"ticker_id"`
BaseCurrency string `json:"base_currency"`
TargetCurrency string `json:"target_currency"`
LastPrice string `json:"last_price"`
BaseVolume string `json:"base_volume"`
TargetVolume string `json:"target_volume"`
PoolId string `json:"pool_id"`
LiquidityInUsd string `json:"liquidity_in_usd"`
}
type TickersRes ¶
type TickersRes []TickerRes
Click to show internal directories.
Click to hide internal directories.