Documentation ¶
Index ¶
- type OKCoin
- 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) GetHistoricCandles(pair currency.Pair, a asset.Item, start, end time.Time, ...) (kline.Item, error)
- func (o *OKCoin) GetHistoricCandlesExtended(pair currency.Pair, a asset.Item, start, end time.Time, ...) (kline.Item, error)
- func (b *OKCoin) GetOrderHistoryById(getOrdersRequest string) ([]order.Detail, 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) 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) GetHistoricCandles ¶
func (o *OKCoin) GetHistoricCandles(pair currency.Pair, a asset.Item, start, end time.Time, interval kline.Interval) (kline.Item, error)
GetHistoricCandles returns candles between a time period for a set time interval
func (*OKCoin) GetHistoricCandlesExtended ¶
func (o *OKCoin) GetHistoricCandlesExtended(pair currency.Pair, a asset.Item, start, end time.Time, interval kline.Interval) (kline.Item, error)
GetHistoricCandlesExtended returns candles between a time period for a set time interval
func (*OKCoin) GetOrderHistoryById ¶
GetOrderHistoryById retrieves specified closed order information Can Limit response to specific order status
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