Documentation
¶
Index ¶
- type OKCoin
- func (o *OKCoin) CancelBatchOrders(orders []order.Cancel) (order.CancelBatchResponse, error)
- func (o *OKCoin) FetchTicker(p currency.Pair, assetType asset.Item) (tickerData *ticker.Price, err error)
- func (o *OKCoin) FetchTradablePairs(asset asset.Item) ([]string, error)
- func (o *OKCoin) GetDefaultConfig() (*config.ExchangeConfig, error)
- func (o *OKCoin) GetRecentTrades(p currency.Pair, assetType asset.Item) ([]trade.Data, error)
- func (o *OKCoin) Run()
- func (o *OKCoin) SetDefaults()
- func (o *OKCoin) Start(wg *sync.WaitGroup)
- func (o *OKCoin) UpdateTicker(p currency.Pair, assetType asset.Item) (*ticker.Price, error)
- func (o *OKCoin) UpdateTradablePairs(forceUpdate bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OKCoin ¶
OKCoin bases all methods off okgroup implementation
func (*OKCoin) CancelBatchOrders ¶
CancelBatchOrders cancels an orders by their corresponding ID numbers
func (*OKCoin) FetchTicker ¶
func (o *OKCoin) FetchTicker(p currency.Pair, assetType asset.Item) (tickerData *ticker.Price, err error)
FetchTicker returns the ticker for a currency pair
func (*OKCoin) FetchTradablePairs ¶
FetchTradablePairs returns a list of the exchanges tradable pairs
func (*OKCoin) GetDefaultConfig ¶
func (o *OKCoin) GetDefaultConfig() (*config.ExchangeConfig, error)
GetDefaultConfig returns a default exchange config
func (*OKCoin) GetRecentTrades ¶
GetRecentTrades returns the most recent trades for a currency and asset
func (*OKCoin) SetDefaults ¶
func (o *OKCoin) SetDefaults()
SetDefaults method assignes the default values for OKEX
func (*OKCoin) UpdateTicker ¶
UpdateTicker updates and returns the ticker for a currency pair
func (*OKCoin) UpdateTradablePairs ¶
UpdateTradablePairs updates the exchanges available pairs and stores them in the exchanges config
Click to show internal directories.
Click to hide internal directories.