Documentation ¶
Index ¶
Constants ¶
View Source
const Okex = "Okex"
Variables ¶
This section is empty.
Functions ¶
func ErrNotSupportType ¶
func IsErrNotSupportType ¶
Types ¶
type Client ¶
type Client struct { APIKey string SecretKey string BaseURL string Id string // contains filtered or unexported fields }
Client 单个 websocket 信息
func NewOkexStream ¶
func (*Client) Subscribe ¶
func (c *Client) Subscribe(ch interface{}) event.Subscription
type Instruments ¶
type OkexSubscribe ¶
type OkexSubscribeReq ¶
type OkexSubscribeReq struct { Op string `json:"op,omitempty"` Args []interface{} `json:"args,omitempty"` }
type OkexSubscribeResp ¶
type OkexSubscribeResp struct { Event string `json:"event,omitempty"` Arg OkexSubscribe `json:"args,omitempty"` }
type SubscribeService ¶
type SubscribeService struct { ExName string // contains filtered or unexported fields }
func (*SubscribeService) Subscribe ¶
func (s *SubscribeService) Subscribe(x string)
func (*SubscribeService) SubscribeOk ¶
func (s *SubscribeService) SubscribeOk(channel, instId string)
Click to show internal directories.
Click to hide internal directories.