public final class OrderBookUpdate extends Object
Constructor and Description |
---|
OrderBookUpdate(Order.OrderType type,
BigDecimal volume,
CurrencyPair currencyPair,
BigDecimal limitPrice,
Date timestamp,
BigDecimal totalVolume)
Build an order book update.
|
Modifier and Type | Method and Description |
---|---|
LimitOrder |
getLimitOrder()
Get the order limit.
|
BigDecimal |
getTotalVolume()
Get the total volume.
|
String |
toString() |
public OrderBookUpdate(Order.OrderType type, BigDecimal volume, CurrencyPair currencyPair, BigDecimal limitPrice, Date timestamp, BigDecimal totalVolume)
type
- the order type (BID/ASK)volume
- volume in the tradable currencytradableIdentifier
- the tradable identifier (e.g. BTC in BTC/USD)transactionCurrency
- the transaction currency (e.g. USD in BTC/USD)limitPrice
- the limit price - minimum acceptable price for a BID, maximum acceptable price for an ASKtimestamp
- the timestamp for the updatetotalVolume
- the total volume in the orderpublic LimitOrder getLimitOrder()
public BigDecimal getTotalVolume()
Copyright © 2012–2016 Xeiam, LLC. All rights reserved.