Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Start int64 `json:"start"` End int64 `json:"end"` Interval string `json:"interval"` Open string `json:"open"` Close string `json:"close"` High string `json:"high"` Low string `json:"low"` Volume string `json:"volume"` Turnover string `json:"turnover"` Confirm bool `json:"confirm"` Timestamp int64 `json:"timestamp"` }
type Kline ¶
type Kline interface { SetClient(client *client.Client) error Subscribe(symbols []string, interval string, callback func(response Data)) error Unsubscribe(topics ...string) error Receive() (int, []byte, error) Close() GetMessagesChan() <-chan []byte Stop() }
Kline represents the interface for the kline functionality.
Click to show internal directories.
Click to hide internal directories.