Documentation
¶
Index ¶
- Variables
- type Address
- type GetActivitiesRequest
- type GetActivitiesResponse
- type GetLeaderboardRequest
- type GetLeaderboardResponse
- type GetTokenInspectActivitiesRequest
- type GetTokenInspectActivitiesResponse
- type GetTokenInspectDepositWithdraw
- type GetTokenInspectSellBuy
- type GetTokenProfitRequest
- type GetTokenProfitRes
- type GetUserInspectActivitiesRequest
- type GetUserInspectActivitiesResponse
- type GetUserProfitRequest
- type ListTokenRequest
- type ListUserRequest
- type Server
- type TokenTrendingReponse
- type TopCexInRequest
- type TopCexOutRequest
- type UserInspect
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidTopCexInRequest = errors.New("invalid cex in request") ErrInvalidTopCexOutRequest = errors.New("invalid cex out request") ErrInvalidTopNetInRequest = errors.New("invalid net in request") ErrInvalidTopNetOutRequest = errors.New("invalid net out request") ErrInvalidTopUserProfitRequest = errors.New("invalid user profit request") ErrInvalidTopTokenProfitRequest = errors.New("invalid token profit request") ErrInvalidTokenInspect = errors.New("invalid token inspect") ErrInvalidUserInspect = errors.New("invalid user inspect") ErrInvalidDuration = errors.New("invalid duration") ErrInvalidListToken = errors.New("invalid get list token") ErrInvalidListUser = errors.New("invalid get list user") ErrInvalidGetActivities = errors.New("invalid get activities") ErrInvalidGetLeaderboard = errors.New("invalid get leaderboard") )
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Addr string `json:"address"` Value float64 `json:"value"` Symbol string `json:"symbol,omitempty"` Network string `json:"network,omitempty"` CurrentPrice float64 `json:"current_price,omitempty"` // user for token only ImageUrl string `json:"image_url,omitempty"` // user for token only }
type GetActivitiesRequest ¶ added in v0.0.4
type GetActivitiesResponse ¶ added in v0.0.7
type GetLeaderboardRequest ¶ added in v0.0.8
type GetLeaderboardRequest struct {
Chain string `form:"chain" binding:"required"`
}
type GetLeaderboardResponse ¶ added in v0.0.8
type GetLeaderboardResponse struct { UserAddress string `json:"user_address"` NetProfit float64 `json:"net_profit"` // MostProfitableTradeToken common.Token `json:"most_profitable_trade_token"` CurrentLargestPosition common.Token `json:"current_largest_position"` MostTokenBuy common.Token `json:"most_token_buy"` MostTokenSell common.Token `json:"most_token_sell"` LastTrade time.Time `json:"last_trade"` }
type GetTokenInspectActivitiesRequest ¶ added in v0.0.8
type GetTokenInspectActivitiesResponse ¶ added in v0.0.8
type GetTokenInspectDepositWithdraw ¶ added in v0.0.8
type GetTokenInspectSellBuy ¶ added in v0.0.8
type GetTokenProfitRequest ¶
type GetTokenProfitRes ¶ added in v0.0.2
type GetUserInspectActivitiesRequest ¶ added in v0.0.9
type GetUserInspectActivitiesResponse ¶ added in v0.0.9
type GetUserProfitRequest ¶
type ListTokenRequest ¶
type ListTokenRequest struct {
Chain string `form:"chain" binding:"required"`
}
type ListUserRequest ¶
type ListUserRequest struct {
Chain string `form:"chain" binding:"required"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server to serve the service.
type TokenTrendingReponse ¶ added in v0.0.9
type TokenTrendingReponse struct { Name string `json:"name"` Symbol string `json:"symbol"` Thumb string `json:"thumb"` Small string `json:"small"` Price string `json:"price"` MarketCap string `json:"market_cap"` TotalVolume string `json:"total_volume"` PriceChangePercentage24h float64 `json:"price_change_percentage_24h"` Address string `json:"address"` ChainID string `json:"chain_id"` }
type TopCexInRequest ¶
type TopCexOutRequest ¶
type UserInspect ¶
Click to show internal directories.
Click to hide internal directories.