CoinbaseSubscribeMessage

@Serializable
data class CoinbaseSubscribeMessage(val type: String = "subscribe", val productIds: List<String>, val channels: List<String>)

Message to send to Coinbase to subscribe to a channel.

Example: { "type": "subscribe", "product_ids": "ETH-USD", "BTC-USD", "channels": "ticker" }

Constructors

Link copied to clipboard
constructor(type: String = "subscribe", productIds: List<String>, channels: List<String>)

Properties

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "product_ids")
val productIds: List<String>
Link copied to clipboard