estonlabs.cxtl.exchanges.binance.fapi.domain.stream.BinanceInboundContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cxtl Show documentation
Show all versions of cxtl Show documentation
CXTL – Crypto eXchange Trading Library
package estonlabs.cxtl.exchanges.binance.fapi.domain.stream;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import estonlabs.cxtl.common.stream.managed.InboundContainer;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME, // Use the name of the type as the identifier
property = "e" // The JSON property that determines the type
)
@JsonSubTypes({
@JsonSubTypes.Type(value = OrderTradeUpdate.class, name = "ORDER_TRADE_UPDATE"),
@JsonSubTypes.Type(value = AccountUpdate.class, name = "ACCOUNT_UPDATE"),
@JsonSubTypes.Type(value = OrderBookStreamData.class, name = "depthUpdate"),
@JsonSubTypes.Type(value = BookTickerStreamData.class, name = "bookTicker")
})
public interface BinanceInboundContainer extends InboundContainer {
}