Documentation
¶
Index ¶
- type CoinEx
- func (coinex *CoinEx) CancelOrder(orderId string, currency common.TradingPair) (bool, error)
- func (coinex *CoinEx) GetAccount() (*common.Account, error)
- func (coinex *CoinEx) GetDepth(size int, currency common.TradingPair) (*common.Depth, error)
- func (coinex *CoinEx) GetDifficulty() (limit, cur float64, err error)
- func (coinex *CoinEx) GetExchangeName() string
- func (coinex *CoinEx) GetKlineRecords(currency common.TradingPair, period, size, since int) ([]common.Kline, error)
- func (coinex *CoinEx) GetOneOrder(orderId string, currency common.TradingPair) (*common.Order, error)
- func (coinex *CoinEx) GetOrderHistorys(currency common.TradingPair, currentPage, pageSize int) ([]common.Order, error)
- func (coinex *CoinEx) GetPendingOrders(page, limit int, pair common.TradingPair) ([]common.Order, error)
- func (coinex *CoinEx) GetTicker(currency common.TradingPair) (*common.Ticker, error)
- func (coinex *CoinEx) GetTrades(currencyPair common.TradingPair, since int64) ([]common.Trade, error)
- func (coinex *CoinEx) GetUnfinishOrders(currency common.TradingPair) ([]common.Order, error)
- func (coinex *CoinEx) LimitBuy(amount, price string, currency common.TradingPair, ...) (*common.Order, error)
- func (coinex *CoinEx) LimitSell(amount, price string, currency common.TradingPair, ...) (*common.Order, error)
- func (coinex *CoinEx) MarketBuy(amount, price string, currency common.TradingPair) (*common.Order, error)
- func (coinex *CoinEx) MarketSell(amount, price string, currency common.TradingPair) (*common.Order, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinEx ¶
type CoinEx struct {
// contains filtered or unexported fields
}
func (*CoinEx) CancelOrder ¶
func (*CoinEx) GetDifficulty ¶
func (*CoinEx) GetExchangeName ¶
func (*CoinEx) GetKlineRecords ¶
func (*CoinEx) GetOneOrder ¶
func (*CoinEx) GetOrderHistorys ¶
func (*CoinEx) GetPendingOrders ¶
func (*CoinEx) GetTrades ¶
func (coinex *CoinEx) GetTrades(currencyPair common.TradingPair, since int64) ([]common.Trade, error)
非个人,整个交易所的交易记录
func (*CoinEx) GetUnfinishOrders ¶
func (*CoinEx) LimitBuy ¶
func (coinex *CoinEx) LimitBuy(amount, price string, currency common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)
func (*CoinEx) LimitSell ¶
func (coinex *CoinEx) LimitSell(amount, price string, currency common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)
func (*CoinEx) MarketSell ¶
Click to show internal directories.
Click to hide internal directories.