Documentation ¶
Index ¶
- type OKCoin
- func (o *OKCoin) CancelBatchOrders(ctx context.Context, orders []order.Cancel) (order.CancelBatchResponse, error)
- func (o *OKCoin) FetchTicker(ctx context.Context, p currency.Pair, assetType asset.Item) (tickerData *ticker.Price, err error)
- func (o *OKCoin) FetchTradablePairs(ctx context.Context, asset asset.Item) ([]string, error)
- func (o *OKCoin) GetDefaultConfig() (*config.Exchange, error)
- func (b *OKCoin) GetKlines(arg interface{}) ([]*kline.Kline, error)
- func (o *OKCoin) GetRecentTrades(ctx context.Context, p currency.Pair, assetType asset.Item) ([]trade.Data, error)
- func (o *OKCoin) Run()
- func (o *OKCoin) SetDefaults()
- func (o *OKCoin) Start(wg *sync.WaitGroup) error
- func (o *OKCoin) UpdateTicker(ctx context.Context, p currency.Pair, a asset.Item) (*ticker.Price, error)
- func (o *OKCoin) UpdateTickers(ctx context.Context, a asset.Item) error
- func (o *OKCoin) UpdateTradablePairs(ctx context.Context, 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 ¶
func (o *OKCoin) CancelBatchOrders(ctx context.Context, orders []order.Cancel) (order.CancelBatchResponse, error)
CancelBatchOrders cancels an orders by their corresponding ID numbers
func (*OKCoin) FetchTicker ¶
func (o *OKCoin) FetchTicker(ctx context.Context, 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 ¶
GetDefaultConfig returns a default exchange config
func (*OKCoin) GetRecentTrades ¶
func (o *OKCoin) GetRecentTrades(ctx context.Context, p currency.Pair, assetType asset.Item) ([]trade.Data, error)
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 ¶
func (o *OKCoin) UpdateTicker(ctx context.Context, p currency.Pair, a asset.Item) (*ticker.Price, error)
UpdateTicker updates and returns the ticker for a currency pair
func (*OKCoin) UpdateTickers ¶
UpdateTickers updates the ticker for all currency pairs of a given asset type
Click to show internal directories.
Click to hide internal directories.