Documentation ¶
Index ¶
- Constants
- type Client
- func (p *Client) Close() error
- func (ws *Client) Ping() error
- func (p *Client) Realtime(chs, pairs []string)
- func (ws *Client) SubscribeDiffDepth(pair string) error
- func (ws *Client) SubscribeTicker(pair string) error
- func (ws *Client) SubscribeTransactions(pair string) error
- func (ws *Client) SubscribeWholeDepth(pair string) error
- type Pairs
- type Recive
- type Request
- type Types
Constants ¶
View Source
const ( HeartbeatIntervalSecond time.Duration = 25 ReadTimeoutSecond time.Duration = 300 WriteTimeoutSecond time.Duration = 5 )
View Source
const ( // Channel prefix ChTicker = "ticker_" ChDepth = "depth_" ChTransactions = "transactions_" ChCandlestick = "candlestick_" // Channel depth all or diff DepthAll = "whole_" DepthDiff = "diff_" // Pairs btc_jpy, xrp_jpy, ltc_btc, eth_btc, mona_jpy, mona_btc, bcc_jpy, bcc_btc BTCJPY = "btc_jpy" XRPJPY = "xrp_jpy" BCCJPY = "bcc_jpy" MNAJPY = "mona_jpy" ETHBTC = "eth_btc" LTCBTC = "ltc_btc" MNABTC = "mona_btc" BCCBTC = "bcc_btc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // old↓ // Subscriber chan interface{} // New↓ Subscriber chan Recive Done chan error // contains filtered or unexported fields }
func (*Client) SubscribeDiffDepth ¶
func (*Client) SubscribeTicker ¶
func (*Client) SubscribeTransactions ¶
func (*Client) SubscribeWholeDepth ¶
Click to show internal directories.
Click to hide internal directories.