All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.bitrich.xchangestream.binance.dto.ProductBinanceWebSocketTransaction Maven / Gradle / Ivy

The newest version!
package info.bitrich.xchangestream.binance.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.knowm.xchange.binance.BinanceAdapters;
import org.knowm.xchange.currency.CurrencyPair;

public class ProductBinanceWebSocketTransaction extends BaseBinanceWebSocketTransaction {

    protected final CurrencyPair currencyPair;

    public ProductBinanceWebSocketTransaction(
            @JsonProperty("e") String eventType,
            @JsonProperty("E") String eventTime,
            @JsonProperty("s") String symbol) {
        super(eventType, eventTime);
        currencyPair = BinanceAdapters.adaptSymbol(symbol);
    }

    public CurrencyPair getCurrencyPair() {
        return currencyPair;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy