Class BTCMarketsWebSocketSubscriptionMessage
java.lang.Object
info.bitrich.xchangestream.btcmarkets.dto.BTCMarketsWebSocketSubscriptionMessage
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAddSubscriptionMessage
(List<String> marketIds, List<String> channels, Long timestamp, String key, String signature) getFirstSubscriptionMessage
(List<String> marketIds, List<String> channels, Long timestamp, String key, String signature) Use this method to retrieve a subscribe message when you intend to add or remove subscriptions at a later stage All other existing subscriptions will be removed.getRemoveSubcriptionMessage
(List<String> marketIds, List<String> channels, Long timestamp, String key, String signature)
-
Field Details
-
messageType
-
marketIds
-
channels
-
timestamp
-
key
-
signature
-
clientType
-
-
Constructor Details
-
BTCMarketsWebSocketSubscriptionMessage
@Deprecated public BTCMarketsWebSocketSubscriptionMessage(List<String> marketIds, List<String> channels, Long timestamp, String key, String signature) Deprecated.Use the static methodinvalid @link
BTCMarketsWebSocketSubscriptionMessage.getFirstSubcritionMessage
- Parameters:
marketIds
- All market id's to subscribe on, any current subscriptions will be dropped if not in the current message.
-
-
Method Details
-
getFirstSubscriptionMessage
public static BTCMarketsWebSocketSubscriptionMessage getFirstSubscriptionMessage(List<String> marketIds, List<String> channels, Long timestamp, String key, String signature) Use this method to retrieve a subscribe message when you intend to add or remove subscriptions at a later stage All other existing subscriptions will be removed.- Parameters:
marketIds
-channels
-timestamp
-key
-signature
-- Returns:
BTCMarketsWebSocketSubscriptionMessage
-
getAddSubscriptionMessage
-
getRemoveSubcriptionMessage
-