Documentation ¶
Index ¶
- func GetExchange() (model.Exchange, error)
- type Binance
- func (self *Binance) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *Binance) Buy(client interface{}, cancel bool, market string, calls model.Calls, ...) error
- func (self *Binance) Cancel(client interface{}, market string, side model.OrderSide) error
- func (self *Binance) FormatMarket(base, quote string) string
- func (self *Binance) Get24h(client interface{}, market string) (*model.Stats, error)
- func (self *Binance) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
- func (self *Binance) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *Binance) GetClosed(client interface{}, market string) (model.Orders, error)
- func (self *Binance) GetInfo() *model.ExchangeInfo
- func (self *Binance) GetMarkets(cached, sandbox bool, blacklist []string) ([]model.Market, error)
- func (self *Binance) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *Binance) GetOpened(client interface{}, market string) (model.Orders, error)
- func (self *Binance) GetPricePrec(client interface{}, market string) (int, error)
- func (self *Binance) GetSizePrec(client interface{}, market string) (int, error)
- func (self *Binance) GetTicker(client interface{}, market string) (float64, error)
- func (self *Binance) HasAlgoOrder(client interface{}, market string) (bool, error)
- func (self *Binance) IsLeveragedToken(name string) bool
- func (self *Binance) OCO(client interface{}, market string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *Binance) Order(client interface{}, side model.OrderSide, market string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *Binance) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *Binance) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
- type Bitstamp
- func (self *Bitstamp) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *Bitstamp) Buy(client interface{}, cancel bool, market string, calls model.Calls, ...) error
- func (self *Bitstamp) Cancel(client interface{}, market string, side model.OrderSide) error
- func (self *Bitstamp) FormatMarket(base, quote string) string
- func (self *Bitstamp) Get24h(client interface{}, market string) (*model.Stats, error)
- func (self *Bitstamp) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
- func (self *Bitstamp) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *Bitstamp) GetClosed(client interface{}, market string) (model.Orders, error)
- func (self *Bitstamp) GetInfo() *model.ExchangeInfo
- func (self *Bitstamp) GetMarkets(cached, sandbox bool, blacklist []string) ([]model.Market, error)
- func (self *Bitstamp) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *Bitstamp) GetOpened(client interface{}, market string) (model.Orders, error)
- func (self *Bitstamp) GetPricePrec(client interface{}, marketName string) (int, error)
- func (self *Bitstamp) GetSizePrec(client interface{}, marketName string) (int, error)
- func (self *Bitstamp) GetTicker(client interface{}, market string) (float64, error)
- func (self *Bitstamp) HasAlgoOrder(client interface{}, market string) (bool, error)
- func (self *Bitstamp) IsLeveragedToken(name string) bool
- func (self *Bitstamp) OCO(client interface{}, market string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *Bitstamp) Order(client interface{}, side model.OrderSide, market string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *Bitstamp) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *Bitstamp) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
- type Bittrex
- func (self *Bittrex) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *Bittrex) Buy(client interface{}, cancel bool, market1 string, calls model.Calls, ...) error
- func (self *Bittrex) Cancel(client interface{}, market1 string, side model.OrderSide) error
- func (self *Bittrex) FormatMarket(base, quote string) string
- func (self *Bittrex) Get24h(client interface{}, market1 string) (*model.Stats, error)
- func (self *Bittrex) GetBook(client interface{}, market1 string, side model.BookSide) (interface{}, error)
- func (self *Bittrex) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *Bittrex) GetClosed(client interface{}, market1 string) (model.Orders, error)
- func (self *Bittrex) GetInfo() *model.ExchangeInfo
- func (self *Bittrex) GetMarkets(cached, sandbox bool, ignore []string) ([]model.Market, error)
- func (self *Bittrex) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *Bittrex) GetOpened(client interface{}, market1 string) (model.Orders, error)
- func (self *Bittrex) GetPricePrec(client interface{}, market1 string) (int, error)
- func (self *Bittrex) GetSizePrec(client interface{}, market string) (int, error)
- func (self *Bittrex) GetTicker(client interface{}, market1 string) (float64, error)
- func (self *Bittrex) HasAlgoOrder(client interface{}, market1 string) (bool, error)
- func (self *Bittrex) IsLeveragedToken(name string) bool
- func (self *Bittrex) OCO(client interface{}, market1 string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *Bittrex) Order(client interface{}, side model.OrderSide, market1 string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *Bittrex) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *Bittrex) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
- type BittrexSessionInfo
- type CexIo
- func (self *CexIo) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *CexIo) Buy(client interface{}, cancel bool, market string, calls model.Calls, ...) error
- func (self *CexIo) Cancel(client interface{}, market string, side model.OrderSide) error
- func (self *CexIo) FormatMarket(base, quote string) string
- func (self *CexIo) Get24h(client interface{}, market string) (*model.Stats, error)
- func (self *CexIo) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
- func (self *CexIo) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *CexIo) GetClosed(client interface{}, market string) (model.Orders, error)
- func (self *CexIo) GetInfo() *model.ExchangeInfo
- func (self *CexIo) GetMarkets(cached, sandbox bool, ignore []string) ([]model.Market, error)
- func (self *CexIo) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *CexIo) GetOpened(client interface{}, market string) (model.Orders, error)
- func (self *CexIo) GetPricePrec(client interface{}, market string) (int, error)
- func (self *CexIo) GetSizePrec(client interface{}, market string) (int, error)
- func (self *CexIo) GetTicker(client interface{}, market string) (float64, error)
- func (self *CexIo) HasAlgoOrder(client interface{}, market string) (bool, error)
- func (self *CexIo) IsLeveragedToken(name string) bool
- func (self *CexIo) OCO(client interface{}, market string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *CexIo) Order(client interface{}, side model.OrderSide, market string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *CexIo) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *CexIo) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
- type CryptoDotCom
- func (self *CryptoDotCom) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *CryptoDotCom) Buy(client interface{}, cancel bool, market string, calls model.Calls, ...) error
- func (self *CryptoDotCom) Cancel(client interface{}, market string, side model.OrderSide) error
- func (self *CryptoDotCom) FormatMarket(base, quote string) string
- func (self *CryptoDotCom) Get24h(client interface{}, market string) (*model.Stats, error)
- func (self *CryptoDotCom) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
- func (self *CryptoDotCom) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *CryptoDotCom) GetClosed(client interface{}, market string) (model.Orders, error)
- func (self *CryptoDotCom) GetInfo() *model.ExchangeInfo
- func (self *CryptoDotCom) GetMarkets(cached, sandbox bool, blacklist []string) ([]model.Market, error)
- func (self *CryptoDotCom) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *CryptoDotCom) GetOpened(client interface{}, market string) (model.Orders, error)
- func (self *CryptoDotCom) GetPricePrec(client interface{}, market string) (int, error)
- func (self *CryptoDotCom) GetSizePrec(client interface{}, market string) (int, error)
- func (self *CryptoDotCom) GetTicker(client interface{}, market string) (float64, error)
- func (self *CryptoDotCom) HasAlgoOrder(client interface{}, market string) (bool, error)
- func (self *CryptoDotCom) IsLeveragedToken(name string) bool
- func (self *CryptoDotCom) OCO(client interface{}, market string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *CryptoDotCom) Order(client interface{}, side model.OrderSide, market string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *CryptoDotCom) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *CryptoDotCom) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
- type CryptoDotComSessionInfo
- type Exchanges
- type Gdax
- func (self *Gdax) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *Gdax) Buy(client interface{}, cancel bool, market string, calls model.Calls, ...) error
- func (self *Gdax) Cancel(client interface{}, market string, side model.OrderSide) error
- func (self *Gdax) FormatMarket(base, quote string) string
- func (self *Gdax) Get24h(client interface{}, market string) (*model.Stats, error)
- func (self *Gdax) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
- func (self *Gdax) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *Gdax) GetClosed(client interface{}, market string) (model.Orders, error)
- func (self *Gdax) GetInfo() *model.ExchangeInfo
- func (self *Gdax) GetMarkets(cached, sandbox bool, blacklist []string) ([]model.Market, error)
- func (self *Gdax) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *Gdax) GetOpened(client interface{}, market string) (model.Orders, error)
- func (self *Gdax) GetPricePrec(client interface{}, market string) (int, error)
- func (self *Gdax) GetSizePrec(client interface{}, market string) (int, error)
- func (self *Gdax) GetTicker(client interface{}, market string) (float64, error)
- func (self *Gdax) HasAlgoOrder(client interface{}, market string) (bool, error)
- func (self *Gdax) IsLeveragedToken(name string) bool
- func (self *Gdax) OCO(client interface{}, market string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *Gdax) Order(client interface{}, side model.OrderSide, market string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *Gdax) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *Gdax) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
- type HitBTC
- func (self *HitBTC) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *HitBTC) Buy(client interface{}, cancel bool, market string, calls model.Calls, ...) error
- func (self *HitBTC) Cancel(client interface{}, market string, side model.OrderSide) error
- func (self *HitBTC) FormatMarket(base, quote string) string
- func (self *HitBTC) Get24h(client interface{}, market string) (*model.Stats, error)
- func (self *HitBTC) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
- func (self *HitBTC) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *HitBTC) GetClosed(client interface{}, market string) (model.Orders, error)
- func (self *HitBTC) GetInfo() *model.ExchangeInfo
- func (self *HitBTC) GetMarkets(cached, sandbox bool, ignore []string) ([]model.Market, error)
- func (self *HitBTC) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *HitBTC) GetOpened(client interface{}, market string) (model.Orders, error)
- func (self *HitBTC) GetPricePrec(client interface{}, market string) (int, error)
- func (self *HitBTC) GetSizePrec(client interface{}, market string) (int, error)
- func (self *HitBTC) GetTicker(client interface{}, market string) (float64, error)
- func (self *HitBTC) HasAlgoOrder(client interface{}, market string) (bool, error)
- func (self *HitBTC) IsLeveragedToken(name string) bool
- func (self *HitBTC) OCO(client interface{}, market string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *HitBTC) Order(client interface{}, side model.OrderSide, market string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *HitBTC) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *HitBTC) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
- type Huobi
- func (self *Huobi) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *Huobi) Buy(client interface{}, cancel bool, market string, calls model.Calls, ...) error
- func (self *Huobi) Cancel(client interface{}, market string, side model.OrderSide) error
- func (self *Huobi) FormatMarket(base, quote string) string
- func (self *Huobi) Get24h(client interface{}, market string) (*model.Stats, error)
- func (self *Huobi) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
- func (self *Huobi) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *Huobi) GetClosed(client interface{}, market string) (model.Orders, error)
- func (self *Huobi) GetInfo() *model.ExchangeInfo
- func (self *Huobi) GetMarkets(cached, sandbox bool, blacklist []string) ([]model.Market, error)
- func (self *Huobi) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *Huobi) GetOpened(client interface{}, market string) (model.Orders, error)
- func (self *Huobi) GetPricePrec(client interface{}, market string) (int, error)
- func (self *Huobi) GetSizePrec(client interface{}, market string) (int, error)
- func (self *Huobi) GetTicker(client interface{}, market string) (float64, error)
- func (self *Huobi) HasAlgoOrder(client interface{}, market string) (bool, error)
- func (self *Huobi) IsLeveragedToken(name string) bool
- func (self *Huobi) OCO(client interface{}, market string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *Huobi) Order(client interface{}, side model.OrderSide, market string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *Huobi) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *Huobi) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
- type Kucoin
- func (self *Kucoin) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *Kucoin) Buy(client interface{}, cancel bool, market string, calls model.Calls, ...) error
- func (self *Kucoin) Cancel(client interface{}, market string, side model.OrderSide) error
- func (self *Kucoin) FormatMarket(base, quote string) string
- func (self *Kucoin) Get24h(client interface{}, market string) (*model.Stats, error)
- func (self *Kucoin) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
- func (self *Kucoin) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *Kucoin) GetClosed(client interface{}, market string) (model.Orders, error)
- func (self *Kucoin) GetInfo() *model.ExchangeInfo
- func (self *Kucoin) GetMarkets(cached, sandbox bool, blacklist []string) ([]model.Market, error)
- func (self *Kucoin) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *Kucoin) GetOpened(client interface{}, market string) (model.Orders, error)
- func (self *Kucoin) GetPricePrec(client interface{}, market string) (int, error)
- func (self *Kucoin) GetSizePrec(client interface{}, market string) (int, error)
- func (self *Kucoin) GetTicker(client interface{}, market string) (float64, error)
- func (self *Kucoin) HasAlgoOrder(client interface{}, market string) (bool, error)
- func (self *Kucoin) IsLeveragedToken(name string) bool
- func (self *Kucoin) OCO(client interface{}, market string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *Kucoin) Order(client interface{}, side model.OrderSide, market string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *Kucoin) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *Kucoin) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
- type Woo
- func (self *Woo) Aggregate(client, book interface{}, market string, agg float64) (model.Book, error)
- func (self *Woo) Buy(client interface{}, cancel bool, market string, calls model.Calls, ...) error
- func (self *Woo) Cancel(client interface{}, market string, side model.OrderSide) error
- func (self *Woo) FormatMarket(base, quote string) string
- func (self *Woo) Get24h(client interface{}, market string) (*model.Stats, error)
- func (self *Woo) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
- func (self *Woo) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
- func (self *Woo) GetClosed(client interface{}, market string) (model.Orders, error)
- func (self *Woo) GetInfo() *model.ExchangeInfo
- func (self *Woo) GetMarkets(cached, sandbox bool, blacklist []string) ([]model.Market, error)
- func (self *Woo) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, ...) float64
- func (self *Woo) GetOpened(client interface{}, market string) (model.Orders, error)
- func (self *Woo) GetPricePrec(client interface{}, market string) (int, error)
- func (self *Woo) GetSizePrec(client interface{}, market string) (int, error)
- func (self *Woo) GetTicker(client interface{}, market string) (float64, error)
- func (self *Woo) HasAlgoOrder(client interface{}, market string) (bool, error)
- func (self *Woo) IsLeveragedToken(name string) bool
- func (self *Woo) OCO(client interface{}, market string, size float64, price, stop float64, ...) ([]byte, error)
- func (self *Woo) Order(client interface{}, side model.OrderSide, market string, size float64, ...) (oid []byte, raw []byte, err error)
- func (self *Woo) Sell(strategy model.Strategy, hold, earn model.Markets, sandbox, tweet, debug bool, ...) error
- func (self *Woo) StopLoss(client interface{}, market string, size float64, price float64, ...) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExchange ¶
Types ¶
type Binance ¶
type Binance struct {
*model.ExchangeInfo
}
func (*Binance) FormatMarket ¶
func (*Binance) GetClient ¶
func (self *Binance) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*Binance) GetInfo ¶
func (self *Binance) GetInfo() *model.ExchangeInfo
func (*Binance) GetMarkets ¶
func (*Binance) GetMaxSize ¶
func (*Binance) GetPricePrec ¶
func (*Binance) GetSizePrec ¶
func (*Binance) HasAlgoOrder ¶
func (*Binance) IsLeveragedToken ¶
type Bitstamp ¶
type Bitstamp struct {
*model.ExchangeInfo
}
func (*Bitstamp) FormatMarket ¶
func (*Bitstamp) GetClient ¶
func (self *Bitstamp) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*Bitstamp) GetInfo ¶
func (self *Bitstamp) GetInfo() *model.ExchangeInfo
func (*Bitstamp) GetMarkets ¶
func (*Bitstamp) GetMaxSize ¶
func (*Bitstamp) GetPricePrec ¶
func (*Bitstamp) GetSizePrec ¶
func (*Bitstamp) HasAlgoOrder ¶
func (*Bitstamp) IsLeveragedToken ¶
type Bittrex ¶
type Bittrex struct { *model.ExchangeInfo // contains filtered or unexported fields }
func (*Bittrex) FormatMarket ¶
func (*Bittrex) GetClient ¶
func (self *Bittrex) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*Bittrex) GetInfo ¶
func (self *Bittrex) GetInfo() *model.ExchangeInfo
func (*Bittrex) GetMarkets ¶
func (*Bittrex) GetMaxSize ¶
func (*Bittrex) GetPricePrec ¶
func (*Bittrex) GetSizePrec ¶
func (*Bittrex) HasAlgoOrder ¶
func (*Bittrex) IsLeveragedToken ¶
type BittrexSessionInfo ¶
type CexIo ¶
type CexIo struct {
*model.ExchangeInfo
}
func (*CexIo) FormatMarket ¶
func (*CexIo) GetClient ¶
func (self *CexIo) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*CexIo) GetInfo ¶
func (self *CexIo) GetInfo() *model.ExchangeInfo
func (*CexIo) GetMarkets ¶
func (*CexIo) GetMaxSize ¶
func (*CexIo) GetPricePrec ¶
see: https://blog.cex.io/news/precision-and-minimum-order-size-change-for-certain-trading-pairs-20957
func (*CexIo) GetSizePrec ¶
func (*CexIo) HasAlgoOrder ¶
func (*CexIo) IsLeveragedToken ¶
type CryptoDotCom ¶
type CryptoDotCom struct { *model.ExchangeInfo // contains filtered or unexported fields }
func (*CryptoDotCom) Cancel ¶
func (self *CryptoDotCom) Cancel(client interface{}, market string, side model.OrderSide) error
func (*CryptoDotCom) FormatMarket ¶
func (self *CryptoDotCom) FormatMarket(base, quote string) string
func (*CryptoDotCom) Get24h ¶
func (self *CryptoDotCom) Get24h(client interface{}, market string) (*model.Stats, error)
func (*CryptoDotCom) GetBook ¶
func (self *CryptoDotCom) GetBook(client interface{}, market string, side model.BookSide) (interface{}, error)
func (*CryptoDotCom) GetClient ¶
func (self *CryptoDotCom) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*CryptoDotCom) GetClosed ¶
func (self *CryptoDotCom) GetClosed(client interface{}, market string) (model.Orders, error)
func (*CryptoDotCom) GetInfo ¶
func (self *CryptoDotCom) GetInfo() *model.ExchangeInfo
func (*CryptoDotCom) GetMarkets ¶
func (*CryptoDotCom) GetMaxSize ¶
func (self *CryptoDotCom) GetMaxSize(client interface{}, base, quote string, hold, earn bool, def float64, mult multiplier.Mult) float64
func (*CryptoDotCom) GetOpened ¶
func (self *CryptoDotCom) GetOpened(client interface{}, market string) (model.Orders, error)
func (*CryptoDotCom) GetPricePrec ¶
func (self *CryptoDotCom) GetPricePrec(client interface{}, market string) (int, error)
func (*CryptoDotCom) GetSizePrec ¶
func (self *CryptoDotCom) GetSizePrec(client interface{}, market string) (int, error)
func (*CryptoDotCom) GetTicker ¶
func (self *CryptoDotCom) GetTicker(client interface{}, market string) (float64, error)
func (*CryptoDotCom) HasAlgoOrder ¶
func (self *CryptoDotCom) HasAlgoOrder(client interface{}, market string) (bool, error)
func (*CryptoDotCom) IsLeveragedToken ¶
func (self *CryptoDotCom) IsLeveragedToken(name string) bool
type CryptoDotComSessionInfo ¶
type CryptoDotComSessionInfo struct {
Cooldown bool `json:"cooldown"`
}
type Gdax ¶
type Gdax struct { *model.ExchangeInfo // contains filtered or unexported fields }
func (*Gdax) FormatMarket ¶
func (*Gdax) GetClient ¶
func (self *Gdax) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*Gdax) GetInfo ¶
func (self *Gdax) GetInfo() *model.ExchangeInfo
func (*Gdax) GetMarkets ¶
func (*Gdax) GetMaxSize ¶
func (*Gdax) GetPricePrec ¶
func (*Gdax) GetSizePrec ¶
func (*Gdax) HasAlgoOrder ¶
func (*Gdax) IsLeveragedToken ¶
type HitBTC ¶
type HitBTC struct { *model.ExchangeInfo // contains filtered or unexported fields }
func (*HitBTC) FormatMarket ¶
func (*HitBTC) GetClient ¶
func (self *HitBTC) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*HitBTC) GetInfo ¶
func (self *HitBTC) GetInfo() *model.ExchangeInfo
func (*HitBTC) GetMarkets ¶
func (*HitBTC) GetMaxSize ¶
func (*HitBTC) GetPricePrec ¶
func (*HitBTC) GetSizePrec ¶
func (*HitBTC) HasAlgoOrder ¶
func (*HitBTC) IsLeveragedToken ¶
type Huobi ¶ added in v0.0.186
type Huobi struct { *model.ExchangeInfo // contains filtered or unexported fields }
func (*Huobi) FormatMarket ¶ added in v0.0.186
func (*Huobi) GetClient ¶ added in v0.0.186
func (self *Huobi) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*Huobi) GetInfo ¶ added in v0.0.186
func (self *Huobi) GetInfo() *model.ExchangeInfo
func (*Huobi) GetMarkets ¶ added in v0.0.186
func (*Huobi) GetMaxSize ¶ added in v0.0.186
func (*Huobi) GetPricePrec ¶ added in v0.0.186
func (*Huobi) GetSizePrec ¶ added in v0.0.186
func (*Huobi) HasAlgoOrder ¶ added in v0.0.186
func (*Huobi) IsLeveragedToken ¶ added in v0.0.186
type Kucoin ¶
type Kucoin struct { *model.ExchangeInfo // contains filtered or unexported fields }
func (*Kucoin) FormatMarket ¶
func (*Kucoin) GetClient ¶
func (self *Kucoin) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*Kucoin) GetInfo ¶
func (self *Kucoin) GetInfo() *model.ExchangeInfo
func (*Kucoin) GetMarkets ¶
func (*Kucoin) GetMaxSize ¶
func (*Kucoin) GetPricePrec ¶
func (*Kucoin) GetSizePrec ¶
func (*Kucoin) HasAlgoOrder ¶
func (*Kucoin) IsLeveragedToken ¶
type Woo ¶
type Woo struct { *model.ExchangeInfo // contains filtered or unexported fields }
func (*Woo) FormatMarket ¶
func (*Woo) GetClient ¶
func (self *Woo) GetClient(permission model.Permission, sandbox bool) (interface{}, error)
func (*Woo) GetInfo ¶
func (self *Woo) GetInfo() *model.ExchangeInfo
func (*Woo) GetMarkets ¶
func (*Woo) GetMaxSize ¶
func (*Woo) GetPricePrec ¶
func (*Woo) GetSizePrec ¶
func (*Woo) HasAlgoOrder ¶
func (*Woo) IsLeveragedToken ¶
Click to show internal directories.
Click to hide internal directories.