public class Orderbook extends Object
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.
| Constructor and Description |
|---|
Orderbook(String symbol_id,
Instant time_exchange,
Instant time_coinapi,
ArrayList<Level> bids,
ArrayList<Level> asks) |
| Modifier and Type | Method and Description |
|---|---|
Level |
get_ask(int index) |
int |
get_asks_count() |
Level |
get_bid(int index) |
int |
get_bids_count() |
String |
get_symbol_id() |
Instant |
get_time_coinapi() |
Instant |
get_time_exchange() |
public String get_symbol_id()
public Instant get_time_exchange()
public Instant get_time_coinapi()
public int get_bids_count()
public int get_asks_count()
public Level get_bid(int index)
public Level get_ask(int index)
Copyright © 2019 MARMOT SOLUTIONS LTD. All rights reserved.