Documentation ¶
Overview ¶
Package okex okex rest api package
Index ¶
- Constants
- type Client
- func (c *Client) GetAccount(ctx context.Context) ([]model.Balance, error)
- func (c *Client) GetDepth(ctx context.Context, quote string, base string) (*model.OrderBook, error)
- func (c *Client) GetRecords(ctx context.Context, quote string, base string, interval string, since int64, ...) ([]model.Record, error)
- func (c *Client) GetTicker(ctx context.Context, quote string, base string) (*model.Ticker, error)
- func (c *Client) GetTrades(ctx context.Context, quote string, base string) ([]model.Trade, error)
- func (c *Client) SignParams(values *url.Values) error
Constants ¶
View Source
const ( RestHost = "www.okex.com" ApiVer = "v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client OkEx client
func (*Client) GetAccount ¶
GetAccount 获取用户信息, for POST https://www.okex.com/api/v1/userinfo.do
func (*Client) GetRecords ¶
func (c *Client) GetRecords(ctx context.Context, quote string, base string, interval string, since int64, limit int64) ([]model.Record, error)
GetRecords 获取币币K线数据, for GET https://www.okex.com/api/v1/kline.do
func (*Client) GetTrades ¶
GetTrades 获取币币交易信息, for GET https://www.okex.com/api/v1/trades.do
Click to show internal directories.
Click to hide internal directories.