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

io.coinapi.rest.Level Maven / Gradle / Ivy

The newest version!
package io.coinapi.rest;

/**
 * Stores all the state for an orderbook level, as described in https://docs.coinapi.io/#order-book.
 * 

* This class is multithread safe: it is immutable. * In particular, it is always properly constructed, * all of its fields are final, * and none of their state can be changed after construction. * See p. 53 of Java Concurrency In Practice for more discussion. */ public class Level { /** Price of bid/ask */ private final double price; /** Volume resting on bid/ask level in base amount */ private final double size; public Level(double price, double size) { this.price = price; this.size = size; } public double get_price() { return price; } public double get_size() { return size; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy