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

info.bitrich.xchangestream.cexio.dto.CexioWebSocketOrderBookSubscriptionData Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package info.bitrich.xchangestream.cexio.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.knowm.xchange.currency.CurrencyPair;

public class CexioWebSocketOrderBookSubscriptionData {
  @JsonProperty final List pair;

  @JsonProperty final boolean subscribe;

  @JsonProperty final int depth;

  public CexioWebSocketOrderBookSubscriptionData(CurrencyPair currencyPair, boolean subscribe) {
    pair =
        new ArrayList(
            Arrays.asList(currencyPair.base.toString(), currencyPair.counter.toString()));
    this.subscribe = subscribe;
    this.depth = 0; // 0 for full depth
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy