Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultApiBase = "https://api.alexgo.io"
View Source
const DefaultGraphQLEndpoint = "https://gql.alexlab.co/v1/graphql"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
func NewAPIClient ¶
func (*APIClient) ExecuteGraphQLQuery ¶
func (*APIClient) FetchLatestPrices ¶
func (c *APIClient) FetchLatestPrices() (TokenPriceResponse, error)
func (*APIClient) GetPairs ¶
func (c *APIClient) GetPairs() ([]CurrencyPair, error)
type CurrencyPair ¶
type CurrencyPair struct { TickerID string `json:"ticker_id"` PoolID string `json:"pool_id"` BaseCurrency string `json:"base_currency"` TargetCurrency string `json:"target_currency"` Base string `json:"base"` Target string `json:"target"` LastPrice float64 `json:"last_price"` BaseVolume float64 `json:"base_volume"` TargetVolume float64 `json:"target_volume"` LiquidityInUSD float64 `json:"liquidity_in_usd"` }
type TokenPriceResponse ¶
Click to show internal directories.
Click to hide internal directories.