public class OrderBook extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_ASKS |
static String |
SERIALIZED_NAME_BIDS |
static String |
SERIALIZED_NAME_CURRENT |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_UPDATE |
| Constructor and Description |
|---|
OrderBook() |
| Modifier and Type | Method and Description |
|---|---|
OrderBook |
addAsksItem(List<String> asksItem) |
OrderBook |
addBidsItem(List<String> bidsItem) |
OrderBook |
asks(List<List<String>> asks) |
OrderBook |
bids(List<List<String>> bids) |
OrderBook |
current(Long current) |
boolean |
equals(Object o) |
List<List<String>> |
getAsks()
Asks order depth
|
List<List<String>> |
getBids()
Bids order depth
|
Long |
getCurrent()
The timestamp of the response data being generated (in milliseconds)
|
Long |
getId()
Order book ID, which is updated whenever the order book is changed.
|
Long |
getUpdate()
The timestamp of when the orderbook last changed (in milliseconds)
|
int |
hashCode() |
OrderBook |
id(Long id) |
void |
setAsks(List<List<String>> asks) |
void |
setBids(List<List<String>> bids) |
void |
setCurrent(Long current) |
void |
setId(Long id) |
void |
setUpdate(Long update) |
String |
toString() |
OrderBook |
update(Long update) |
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_CURRENT
public static final String SERIALIZED_NAME_UPDATE
public static final String SERIALIZED_NAME_ASKS
public static final String SERIALIZED_NAME_BIDS
@Nullable public Long getId()
public void setId(Long id)
@Nullable public Long getCurrent()
public void setCurrent(Long current)
@Nullable public Long getUpdate()
public void setUpdate(Long update)
Copyright © 2023. All rights reserved.