Documentation ¶
Index ¶
- Constants
- type BitflyerApi
- type BitflyerApiConfig
- type Currency
- type CurrencyPair
- type ExchangeApi
- func NewBitflyerApiUsingConfigFunc(f func(*BitflyerApiConfig)) (ExchangeApi, error)
- func NewExchangeAPI(id models.ExchangeID) (ExchangeApi, error)
- func NewHitbtcApiUsingConfigFunc(f func(*HitbtcApiConfig)) (ExchangeApi, error)
- func NewPoloniexApiUsingConfigFunc(f func(*PoloniexApiConfig)) (ExchangeApi, error)
- type HitbtcApi
- type HitbtcApiConfig
- type PoloniexApi
- func (p *PoloniexApi) Currencies() (map[string]Currency, error)
- func (p *PoloniexApi) CurrencyPairs() ([]*CurrencyPair, error)
- func (p *PoloniexApi) GetExchangeId() models.ExchangeID
- func (p *PoloniexApi) Rate(trading string, settlement string) (float64, error)
- func (p *PoloniexApi) Volume(trading string, settlement string) (float64, error)
- type PoloniexApiConfig
Constants ¶
View Source
const (
BITFLYER_BASE_URL = "https://api.bitflyer.jp/v1"
)
View Source
const (
HITBTC_BASE_URL = "https://api.hitbtc.com/api/2"
)
View Source
const (
POLONIEX_BASE_URL = "https://poloniex.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitflyerApi ¶
type BitflyerApi struct {
// contains filtered or unexported fields
}
func (*BitflyerApi) CurrencyPairs ¶
func (b *BitflyerApi) CurrencyPairs() ([]*CurrencyPair, error)
func (*BitflyerApi) GetExchangeId ¶
func (b *BitflyerApi) GetExchangeId() models.ExchangeID
type BitflyerApiConfig ¶
type CurrencyPair ¶
type ExchangeApi ¶
type ExchangeApi interface { GetExchangeId() models.ExchangeID Volume(trading string, settlement string) (float64, error) CurrencyPairs() ([]*CurrencyPair, error) Rate(trading string, settlement string) (float64, error) // contains filtered or unexported methods }
func NewBitflyerApiUsingConfigFunc ¶
func NewBitflyerApiUsingConfigFunc(f func(*BitflyerApiConfig)) (ExchangeApi, error)
func NewExchangeAPI ¶
func NewExchangeAPI(id models.ExchangeID) (ExchangeApi, error)
func NewHitbtcApiUsingConfigFunc ¶
func NewHitbtcApiUsingConfigFunc(f func(*HitbtcApiConfig)) (ExchangeApi, error)
func NewPoloniexApiUsingConfigFunc ¶
func NewPoloniexApiUsingConfigFunc(f func(*PoloniexApiConfig)) (ExchangeApi, error)
type HitbtcApi ¶
type HitbtcApi struct {
// contains filtered or unexported fields
}
func (*HitbtcApi) CurrencyPairs ¶
func (h *HitbtcApi) CurrencyPairs() ([]*CurrencyPair, error)
func (*HitbtcApi) GetExchangeId ¶
func (h *HitbtcApi) GetExchangeId() models.ExchangeID
type HitbtcApiConfig ¶
type PoloniexApi ¶
type PoloniexApi struct {
// contains filtered or unexported fields
}
func (*PoloniexApi) Currencies ¶
func (p *PoloniexApi) Currencies() (map[string]Currency, error)
func (*PoloniexApi) CurrencyPairs ¶
func (p *PoloniexApi) CurrencyPairs() ([]*CurrencyPair, error)
func (*PoloniexApi) GetExchangeId ¶
func (p *PoloniexApi) GetExchangeId() models.ExchangeID
type PoloniexApiConfig ¶
Click to show internal directories.
Click to hide internal directories.