public class SQOrderList extends java.util.ArrayList<SQOrder>
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
Log
The Constant Log.
|
Constructor and Description |
---|
SQOrderList() |
Modifier and Type | Method and Description |
---|---|
SQOrderList |
clone() |
SQOrderList |
filterAndRemoveBalanceOrders()
finds all balance orders, deletes them from current orders list and returns them in a special order list.
|
SQOrderList |
filterByDirection(java.lang.String key)
Filter by direction.
|
SQOrderList |
filterByOOS(boolean OOS1,
boolean OOS2,
boolean OOS3)
Filter by oos.
|
SQOrderList |
filterBySample(java.lang.String key)
Filter by sample.
|
SQOrderList |
filterBySymbol(java.lang.String symbol)
filters list of orders and returns array only with specified symbol + balance transactions.
|
SQOrderList |
filterBySymbol(java.lang.String symbol,
boolean computeAlsoPortfolio)
Filter by symbol.
|
SQOrderList |
filterBySymbolAndComment(java.lang.String symbol,
java.lang.String comment)
Filter by symbol and comment.
|
SQOrderList |
getBalanceOrders()
Gets the balance orders.
|
add, add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public SQOrderList filterByDirection(java.lang.String key)
key
- the keypublic SQOrderList filterBySample(java.lang.String key)
key
- the keypublic SQOrderList filterByOOS(boolean OOS1, boolean OOS2, boolean OOS3)
OOS1
- the OO s1OOS2
- the OO s2OOS3
- the OO s3public SQOrderList filterBySymbol(java.lang.String symbol)
symbol
- the symbolpublic SQOrderList filterBySymbol(java.lang.String symbol, boolean computeAlsoPortfolio)
symbol
- the symbolcomputeAlsoPortfolio
- the compute also portfoliopublic SQOrderList getBalanceOrders()
public SQOrderList filterAndRemoveBalanceOrders()
public SQOrderList filterBySymbolAndComment(java.lang.String symbol, java.lang.String comment)
symbol
- the symbolcomment
- the commentpublic SQOrderList clone()
clone
in class java.util.ArrayList<SQOrder>