Documentation ¶
Index ¶
- func ListExchanges() []string
- func NewBigOneClient(httpClient *http.Client) *bigOneClient
- func NewBinanceClient(httpClient *http.Client) *binanceClient
- func NewBitfinixClient(httpClient *http.Client) *bitfinixClient
- func NewBittrexClient(httpClient *http.Client) *bittrexClient
- func NewCoinmarketcapClient(httpClient *http.Client) *coinMarketCapClient
- func NewGateClient(httpClient *http.Client) *gateClient
- func NewHitBtcClient(httpClient *http.Client) *hitBtcClient
- func NewHuobiClient(httpClient *http.Client) *huobiClient
- func NewOKExClient(httpClient *http.Client) *okexClient
- func NewPoloniexClient(httpClient *http.Client) *poloniexClient
- func NewZBClient(httpClient *http.Client) *zbClient
- func NewkrakenClient(httpClient *http.Client) *krakenClient
- type ExchangeClient
- type SymbolPrice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListExchanges ¶
func ListExchanges() []string
func NewBigOneClient ¶
func NewBinanceClient ¶
func NewBitfinixClient ¶
func NewBittrexClient ¶
func NewCoinmarketcapClient ¶
I don't like returning a general type here, any other better way to use the factory pattern?
func NewGateClient ¶
func NewHitBtcClient ¶
func NewHuobiClient ¶
func NewOKExClient ¶
func NewPoloniexClient ¶ added in v0.2.0
func NewZBClient ¶
func NewkrakenClient ¶ added in v0.2.0
Types ¶
type ExchangeClient ¶
type ExchangeClient interface { GetName() string GetSymbolPrice(string) (*SymbolPrice, error) }
func CreateExchangeClient ¶
func CreateExchangeClient(exchangeName string, httpClient *http.Client) ExchangeClient
Factory method to create exchange client
Click to show internal directories.
Click to hide internal directories.