public abstract class Order extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Order.Builder |
static interface |
Order.IOrderFlags |
static class |
Order.OrderType |
Constructor and Description |
---|
Order(Order.OrderType type,
BigDecimal tradableAmount,
CurrencyPair currencyPair,
String id,
Date timestamp) |
Modifier and Type | Method and Description |
---|---|
void |
addOrderFlag(Order.IOrderFlags flag) |
boolean |
equals(Object obj) |
CurrencyPair |
getCurrencyPair() |
String |
getId() |
Set<Order.IOrderFlags> |
getOrderFlags() |
Date |
getTimestamp() |
BigDecimal |
getTradableAmount() |
Order.OrderType |
getType() |
int |
hashCode() |
void |
setOrderFlags(Set<Order.IOrderFlags> flags) |
String |
toString() |
public Order(Order.OrderType type, BigDecimal tradableAmount, CurrencyPair currencyPair, String id, Date timestamp)
type
- Either BID (buying) or ASK (selling)tradableAmount
- The amount to tradeCurrencyPair
- currencyPair The identifier (e.g. BTC/USD)id
- An id (usually provided by the exchange)timestamp
- the absolute time for this order according to the exchange's server, null if not providedpublic Order.OrderType getType()
public BigDecimal getTradableAmount()
public CurrencyPair getCurrencyPair()
public String getId()
public Date getTimestamp()
public Set<Order.IOrderFlags> getOrderFlags()
public void addOrderFlag(Order.IOrderFlags flag)
public void setOrderFlags(Set<Order.IOrderFlags> flags)
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.