public interface KucoinPrivateWSClient
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close client
|
String |
onAccountBalance(KucoinAPICallback<KucoinEvent<AccountChangeEvent>> callback)
You will receive this message when an account balance changes.
|
String |
onAdvancedOrder(KucoinAPICallback<KucoinEvent<? extends AdvancedOrderEvent>> callback,
String... symbols)
You will receive the message when the status of advanced order changes.
|
String |
onMarginLoan(KucoinAPICallback<KucoinEvent<MarginLoanEvent>> callback,
String symbol)
Borrowing change message push
|
String |
onMarginPosition(KucoinAPICallback<KucoinEvent<MarginPositionEvent>> callback)
When the position status changes, a status change event will be pushed.
|
String |
onOrderActivate(KucoinAPICallback<KucoinEvent<OrderActivateEvent>> callback,
String... symbols)
已过时。
instead use the method
onStopOrderChange(KucoinAPICallback<KucoinEvent<OrderChangeEvent>> callback, String... symbols) |
String |
onOrderChange(KucoinAPICallback<KucoinEvent<OrderChangeEvent>> callback)
You will receive the message when order changes.
|
String |
onOrderV2Change(KucoinAPICallback<KucoinEvent<OrderChangeEvent>> callback)
You will receive the message when order 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(PrivateChannelEnum channelEnum,
String... symbols)
Unsubscribe from topics you have subscribed to.
|
@Deprecated String onOrderActivate(KucoinAPICallback<KucoinEvent<OrderActivateEvent>> callback, String... symbols)
onStopOrderChange(KucoinAPICallback<KucoinEvent<OrderChangeEvent>> callback, String... symbols)callback - symbols - String onAccountBalance(KucoinAPICallback<KucoinEvent<AccountChangeEvent>> callback)
callback - String onOrderChange(KucoinAPICallback<KucoinEvent<OrderChangeEvent>> callback)
callback - String onOrderV2Change(KucoinAPICallback<KucoinEvent<OrderChangeEvent>> callback)
callback - String onMarginPosition(KucoinAPICallback<KucoinEvent<MarginPositionEvent>> callback)
callback - String onMarginLoan(KucoinAPICallback<KucoinEvent<MarginLoanEvent>> callback, String symbol)
callback - symbol - String onAdvancedOrder(KucoinAPICallback<KucoinEvent<? extends AdvancedOrderEvent>> callback, String... symbols)
callback - symbols - String ping(String requestId)
requestId - String unsubscribe(PrivateChannelEnum channelEnum, String... symbols)
channelEnum - symbols - void close()
throws IOException
IOExceptionCopyright © 2023. All rights reserved.