Package-level declarations

Types

Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
sealed class CoinbaseWebSocketMessage

A sealed class representing all possible incoming messages. We'll start with just the 'ticker' message.

Link copied to clipboard
@Serializable
data class TradingProductDTO(val id: String, val baseCurrency: String, val quoteCurrency: String, val baseMinSize: String? = null, val baseMaxSize: String? = null, val quoteIncrement: String, val baseIncrement: String, val displayName: String, val minMarketFunds: String, val maxMarketFunds: String? = null, val marginEnabled: Boolean, val postOnly: Boolean, val limitOnly: Boolean, val cancelOnly: Boolean, val tradingDisabled: Boolean, val status: String, val statusMessage: String?, val fxStablecoin: Boolean? = null, val maxSlippagePercentage: String? = null, val auctionMode: Boolean? = null, val highBidLimitPercentage: String? = null)

Represents a single trading product (pair) from the Coinbase Exchange API. Corresponds to an item in the array response from GET /products