public class HuobiSocketClient extends Object
Constructor and Description |
---|
HuobiSocketClient(URL url) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(HuobiSocketListener listener) |
void |
addListener(ResponseListener listener) |
void |
connect() |
void |
disconnect() |
protected void |
onResponse(Response<? extends Payload> response) |
void |
reconnect() |
void |
reqKLine(String symbol,
Period period,
Date from,
Date to) |
void |
reqMarketDepth(String symbol,
Percent percent) |
void |
reqMarketDepthTop(String symbol) |
void |
reqMarketDetail(String symbol) |
void |
reqMsgSubscribe(Message message) |
void |
reqMsgUnsubscribe(Message message) |
void |
reqSymbolDetail(String... symbol) |
void |
reqSymbolList(String... symbol) |
void |
reqTimeLine(String symbol) |
void |
reqTradeDetailTop(String symbol,
int count) |
void |
send(Request request) |
public HuobiSocketClient(URL url)
public void connect()
public void disconnect()
public void reconnect()
public void addListener(HuobiSocketListener listener)
public void addListener(ResponseListener listener)
public void send(Request request)
public void reqSymbolList(String... symbol)
public void reqSymbolDetail(String... symbol)
public void reqMsgSubscribe(Message message)
public void reqMsgUnsubscribe(Message message)
public void reqTimeLine(String symbol)
public void reqMarketDepthTop(String symbol)
public void reqTradeDetailTop(String symbol, int count)
public void reqMarketDetail(String symbol)
Copyright © 2014–2015. All rights reserved.