Documentation ¶
Index ¶
- func ApplyRoutes(r *gin.RouterGroup)
- func GetRelayer(c *gin.Context)
- func GetRelayers(c *gin.Context)
- func GetToken(c *gin.Context)
- func GetTokens(c *gin.Context)
- func GetTrade(c *gin.Context)
- func GetTrader(c *gin.Context)
- func GetTrades(c *gin.Context)
- func GetTradesChart(c *gin.Context)
- func GetTradesIndicators(c *gin.Context)
- func GetTradesSearch(c *gin.Context)
- type ChartItem
- type RelayerRes
- type TokenRes
- type TokensQuery
- type TokensRes
- type TopToken
- type TraderRes
- type TradesChartQuery
- type TradesQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRoutes ¶
func ApplyRoutes(r *gin.RouterGroup)
func GetRelayer ¶
func GetRelayers ¶
func GetTradesChart ¶
func GetTradesIndicators ¶
func GetTradesSearch ¶
Types ¶
type RelayerRes ¶
type RelayerRes struct { Name string `json:"name"` Url string `json:"url"` Slug string `json:"slug"` Address string `json:"address"` Volume24h decimal.Decimal `json:"volume24h"` Volume24hLast decimal.Decimal `json:"volume24hLast"` Volume24hChange float32 `json:"volume24hChange"` Trades24h decimal.Decimal `json:"trades24h"` Trades24hLast decimal.Decimal `json:"trades24hLast"` Trades24hChange float32 `json:"trades24hChange"` Traders24h decimal.Decimal `json:"traders24h"` Traders24hLast decimal.Decimal `json:"traders24hLast"` Traders24hChange float32 `json:"traders24hChange"` TopTokens []TopToken `json:"topTokens"` }
type TokenRes ¶
type TokenRes struct { Address string `json:"address"` Name string `json:"name"` Symbol string `json:"symbol"` Volume24h decimal.Decimal `gorm:"column:volume_24h" json:"volume24h"` Amount24h decimal.Decimal `json:"amount24h"` Volume24hLast decimal.Decimal `gorm:"column:volume_24h_last" json:"volume24hLast"` Volume24hChange float32 `gorm:"column:volume_24h_change" json:"volume24hChange"` Traders24h uint64 `json:"traders24h"` PriceUSD decimal.Decimal `gorm:"column:price_usd" json:"priceUSD"` PriceUpdatedAt time.Time `gorm:"column:price_updated_at" json:"priceUpdatedAt"` // for top tokens Volume7d decimal.Decimal `gorm:"column:volume_7d;type:decimal(32,18)" json:"volume7d"` Volume7dChange float32 `gorm:"column:volume_7d_change" json:"volume7dChange"` VolumeAll decimal.Decimal `gorm:"column:volume_all;type:decimal(32,18)" json:"volumeAll"` }
type TokensQuery ¶
type TraderRes ¶
type TraderRes struct { Address string `json:"address"` Volume24h decimal.Decimal `json:"volume24h"` Volume24hLast decimal.Decimal `json:"volume24hLast"` Volume24hChange float32 `json:"volume24hChange"` Trades24h decimal.Decimal `json:"trades24h"` Trades24hLast decimal.Decimal `json:"trades24hLast"` Trades24hChange float32 `json:"trades24hChange"` TotalMakerRebate decimal.Decimal `json:"totalMakerRebate"` TopTokens []TopToken `json:"topTokens"` }
type TradesChartQuery ¶
type TradesQuery ¶
type TradesQuery struct { Page int `form:"page"` PageSize int `form:"pageSize"` BaseTokenAddress string `form:"baseTokenAddress"` QuoteTokenAddress string `form:"quoteTokenAddress"` TokenAddress string `form:"tokenAddress"` TraderAddress string `form:"traderAddress"` RelayerAddress string `form:"relayerAddress"` Transaction string `form:"transaction"` }
Click to show internal directories.
Click to hide internal directories.