com.xeiam.xchange.bitstamp.dto.marketdata.BitstampStreamingTransaction Maven / Gradle / Ivy
package com.xeiam.xchange.bitstamp.dto.marketdata;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
//This is to deal with an inconsistency in Bitstamp's APIs, where JsonProperty for
//trade ID is "id" when polling and "tid" when streaming.
public class BitstampStreamingTransaction extends BitstampTransaction {
public BitstampStreamingTransaction(@JsonProperty("date") long date, @JsonProperty("id") int tid, @JsonProperty("price") BigDecimal price,
@JsonProperty("amount") BigDecimal amount) {
super(date, tid, price, amount);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy