public interface KucoinPublicWSClient
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close client
|
String |
onCandles(KucoinAPICallback<KucoinEvent<CandlesEvent>> callback,
String symbolAndType)
Subscribe to this topic to get the K-line data of the specified type for the specified symbol.
|
String |
onIndicatorIndex(KucoinAPICallback<KucoinEvent<IndicatorEvent>> callback,
String... symbols)
Subscribe to this topic to get the index prices used for leveraged trading.
|
String |
onIndicatorMarkPrice(KucoinAPICallback<KucoinEvent<IndicatorEvent>> callback,
String... symbols)
Subscribe to this topic to get the mark prices used for leveraged trading.
|
String |
onLevel2Data(int depth,
KucoinAPICallback<KucoinEvent<Level2Event>> callback,
String... symbols)
Subscribe this topic to get Level2 order book data.
|
String |
onLevel2Data(KucoinAPICallback<KucoinEvent<Level2ChangeEvent>> callback,
String... symbols)
Subscribe this topic to get Level2 order book data.
|
String |
onLevel3Data_V2(KucoinAPICallback<KucoinEvent<Level3Event>> callback,
String... symbols)
Subscribe this topic to get the updated data for orders and trades.
|
String |
onLevel3Data(KucoinAPICallback<KucoinEvent<Level3ChangeEvent>> callback,
String... symbols)
已过时。
instead use the method
onLevel3Data_V2 |
String |
onMarginFundingBook(KucoinAPICallback<KucoinEvent<FundingBookEvent>> callback,
String... currency)
Subscribe to this topic to get the changes of leveraged trading borrowing and selling orders.
|
String |
onMatchExecutionData(KucoinAPICallback<KucoinEvent<MatchExcutionChangeEvent>> callback,
String... symbols)
Subscribe this topic to fully get the updata data for orders and trades.
|
String |
onSnapshot(KucoinAPICallback<KucoinEvent<SnapshotEvent>> callback,
String target)
Subscribe to get snapshot data for a single symbol or a market
|
String |
onTicker(KucoinAPICallback<KucoinEvent<TickerChangeEvent>> callback,
String... symbols)
Subscribe this topic to get the realtime push of BBO changes.
|
String |
ping(String requestId)
To prevent the TCP link being disconnected by the server, the client side needs to send ping messages to the server to keep alive the link.
|
String |
unsubscribe(PublicChannelEnum channelEnum,
String... symbols)
Unsubscribe from topics you have subscribed to.
|
String onTicker(KucoinAPICallback<KucoinEvent<TickerChangeEvent>> callback, String... symbols)
callback - symbols - String onCandles(KucoinAPICallback<KucoinEvent<CandlesEvent>> callback, String symbolAndType)
callback - symbolAndType - String onLevel2Data(KucoinAPICallback<KucoinEvent<Level2ChangeEvent>> callback, String... symbols)
callback - symbols - String onLevel2Data(int depth, KucoinAPICallback<KucoinEvent<Level2Event>> callback, String... symbols)
depth - top N data, right now, only 5 and 50 are available.callback - symbols - String onMatchExecutionData(KucoinAPICallback<KucoinEvent<MatchExcutionChangeEvent>> callback, String... symbols)
callback - symbols - String onLevel3Data_V2(KucoinAPICallback<KucoinEvent<Level3Event>> callback, String... symbols)
This channel provides real-time updates on orders and trades. These updates can be applied on to a Level 3 order book snapshot for users to maintain an accurate and up-to-date copy of the exchange order book.
callback - symbols - @Deprecated String onLevel3Data(KucoinAPICallback<KucoinEvent<Level3ChangeEvent>> callback, String... symbols)
onLevel3Data_V2callback - symbols - String ping(String requestId)
requestId - String unsubscribe(PublicChannelEnum channelEnum, String... symbols)
channelEnum - symbols - void close()
throws IOException
IOExceptionString onSnapshot(KucoinAPICallback<KucoinEvent<SnapshotEvent>> callback, String target)
callback - target - symbol or marketString onIndicatorIndex(KucoinAPICallback<KucoinEvent<IndicatorEvent>> callback, String... symbols)
callback - symbols - String onIndicatorMarkPrice(KucoinAPICallback<KucoinEvent<IndicatorEvent>> callback, String... symbols)
callback - symbols - String onMarginFundingBook(KucoinAPICallback<KucoinEvent<FundingBookEvent>> callback, String... currency)
callback - currency - Copyright © 2023. All rights reserved.