public class OrderFieldSet extends BaseFieldSet
Represents a set of fields relating to an order.
You do not have to create instances of this class yourself. You can retrieve
instances of this class by calling OrderBuilder.getEditableFields()
or
OrderBuilder.getFixedFields()
.
Modifier and Type | Method and Description |
---|---|
OrderFieldSet |
setAccount(Account account)
Sets the account.
|
OrderFieldSet |
setAccount(String accountID,
String accountName)
Sets the account.
|
OrderFieldSet |
setActivationDate(ActivationDate activationDate)
Sets the date, time and location the strategy or order should be activated.
|
OrderFieldSet |
setAlertType(Set<AlertType> alertTypes)
Sets the AlertType
|
OrderFieldSet |
setAmount(String amount)
Sets the amount specified on the order, in terms of the dealt currency.
|
OrderFieldSet |
setAmountFilled(String amount)
Sets the quantity of the order that has been filled so far, in terms of
the dealt currency.
|
OrderFieldSet |
setAmountRemaining(String amount)
Sets the amount of the order that is left to fill.
|
OrderFieldSet |
setBenchmarkType(String type)
Sets the Benchmark type of the order,
|
OrderFieldSet |
setBuySell(BuySell buySell)
Sets the side of the order, from the perspective of the person who placed it.
|
OrderFieldSet |
setCurrencyPair(String value)
Sets the currency pair.
|
OrderFieldSet |
setDealtCurrency(String dealtCurrency)
Sets the currency that the amount of the order is specified in.
|
OrderFieldSet |
setEditable(boolean editable)
Sets a flag indicating whether this order can be edited or not.
|
OrderFieldSet |
setExecutionType(ExecutionType type)
Sets the execution type of the order, for example Take Profit or
Market.
|
OrderFieldSet |
setExpirationDate(ExpirationDate expirationDate)
Sets the date, time and location the strategy or order should expire.
|
OrderFieldSet |
setFillRate(String rate)
Sets the target rate for the order, if for example it's a Take Profit
or Stop Loss order.
|
OrderFieldSet |
setMargin(String margin)
Sets the margin for the order.
|
OrderFieldSet |
setMemo(String memo)
Set Memo - the taker short note of the order.
|
OrderFieldSet |
setOrderID(String orderId)
Sets the ID of the order.
|
OrderFieldSet |
setRemarks(String remarks)
Sets the Remarks
|
OrderFieldSet |
setStatus(String status)
Sets the current status of the order, for example WORKING or DEACTIVATED.
|
setField, setFields, toString
public OrderFieldSet setAccount(String accountID, String accountName)
accountID
- The identifier of the account.accountName
- A "friendly name" for the account, for display in the front end.public OrderFieldSet setAccount(Account account)
account
- The account, with id and namepublic OrderFieldSet setCurrencyPair(String value)
value
- The currency pair.public OrderFieldSet setActivationDate(ActivationDate activationDate)
activationDate
- A domain object representing the activation date.ActivationDate
public OrderFieldSet setExpirationDate(ExpirationDate expirationDate)
expirationDate
- A domain object representing the expiration date.public OrderFieldSet setAlertType(Set<AlertType> alertTypes)
alertTypes
- the set of AlertTypes for this strategypublic OrderFieldSet setRemarks(String remarks)
remarks
- to be attached to the order or strategypublic OrderFieldSet setMemo(String memo)
memo
- to be attached to the order or strategypublic OrderFieldSet setOrderID(String orderId)
orderId
- The order ID.public OrderFieldSet setAmount(String amount)
amount
- The amount.public OrderFieldSet setAmountFilled(String amount)
amount
- The amount filled so far.public OrderFieldSet setAmountRemaining(String amount)
amount
- The amount remaining.public OrderFieldSet setBuySell(BuySell buySell)
buySell
- Either BUY or SELL.public OrderFieldSet setDealtCurrency(String dealtCurrency)
dealtCurrency
- The dealt currency.public OrderFieldSet setExecutionType(ExecutionType type)
type
- The execution type.public OrderFieldSet setBenchmarkType(String type)
type
- The benchmark type.public OrderFieldSet setFillRate(String rate)
rate
- The target rate.public OrderFieldSet setStatus(String status)
status
- The order status.public OrderFieldSet setMargin(String margin)
margin
- The order margin.public OrderFieldSet setEditable(boolean editable)
editable
- A flag indicating whether or not this order can be edited.Copyright © 2015 Caplin Systems.