public class KucoinPublicWSClientImpl extends BaseWebsocketImpl implements KucoinPublicWSClient
| 构造器和说明 |
|---|
KucoinPublicWSClientImpl(KucoinClientBuilder kucoinClientBuilder) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
已过时。
|
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.
|
protected WebsocketTokenResponse |
requestToken() |
String |
unsubscribe(PublicChannelEnum channelEnum,
String... symbols)
Unsubscribe from topics you have subscribed to.
|
close, connect, subscribe, unsubscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic KucoinPublicWSClientImpl(KucoinClientBuilder kucoinClientBuilder)
protected WebsocketTokenResponse requestToken() throws IOException
requestToken 在类中 BaseWebsocketImplIOExceptionpublic String onTicker(KucoinAPICallback<KucoinEvent<TickerChangeEvent>> callback, String... symbols)
KucoinPublicWSClientonTicker 在接口中 KucoinPublicWSClientpublic String onCandles(KucoinAPICallback<KucoinEvent<CandlesEvent>> callback, String symbolAndType)
KucoinPublicWSClientonCandles 在接口中 KucoinPublicWSClientpublic String onLevel2Data(KucoinAPICallback<KucoinEvent<Level2ChangeEvent>> callback, String... symbols)
KucoinPublicWSClientonLevel2Data 在接口中 KucoinPublicWSClientpublic String onLevel2Data(int depth, KucoinAPICallback<KucoinEvent<Level2Event>> callback, String... symbols)
KucoinPublicWSClientonLevel2Data 在接口中 KucoinPublicWSClientdepth - top N data, right now, only 5 and 50 are available.public String onMatchExecutionData(KucoinAPICallback<KucoinEvent<MatchExcutionChangeEvent>> callback, String... symbols)
KucoinPublicWSClientonMatchExecutionData 在接口中 KucoinPublicWSClientpublic String onLevel3Data_V2(KucoinAPICallback<KucoinEvent<Level3Event>> callback, String... symbols)
KucoinPublicWSClientThis 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.
onLevel3Data_V2 在接口中 KucoinPublicWSClient@Deprecated public String onLevel3Data(KucoinAPICallback<KucoinEvent<Level3ChangeEvent>> callback, String... symbols)
KucoinPublicWSClientonLevel3Data 在接口中 KucoinPublicWSClientpublic String ping(String requestId)
KucoinPublicWSClientping 在接口中 KucoinPublicWSClientping 在类中 BaseWebsocketImplpublic String unsubscribe(PublicChannelEnum channelEnum, String... symbols)
KucoinPublicWSClientunsubscribe 在接口中 KucoinPublicWSClientpublic String onSnapshot(KucoinAPICallback<KucoinEvent<SnapshotEvent>> callback, String target)
KucoinPublicWSClientonSnapshot 在接口中 KucoinPublicWSClienttarget - symbol or marketpublic String onIndicatorIndex(KucoinAPICallback<KucoinEvent<IndicatorEvent>> callback, String... symbols)
KucoinPublicWSClientonIndicatorIndex 在接口中 KucoinPublicWSClientpublic String onIndicatorMarkPrice(KucoinAPICallback<KucoinEvent<IndicatorEvent>> callback, String... symbols)
KucoinPublicWSClientonIndicatorMarkPrice 在接口中 KucoinPublicWSClientpublic String onMarginFundingBook(KucoinAPICallback<KucoinEvent<FundingBookEvent>> callback, String... currency)
KucoinPublicWSClientonMarginFundingBook 在接口中 KucoinPublicWSClientCopyright © 2023. All rights reserved.