SingleOrderSendParameters
Package: velox.api.layer1.data
Type: Class
Inheritance: java.lang.Object รขโ โ velox.api.layer1.data.SingleOrderSendParameters
All Implemented Interfaces: MultiAccountAware, OrderSendParameters
Direct Known Subclasses: SimpleOrderSendParameters
Descriptionโ
Base class for sending a single order
Fieldsโ
aliasโ
public final String alias
Alias of the instrument
isBuyโ
public final boolean isBuy
true for buy order, false for sell order
sizeโ
public final int size
Order size
durationโ
public final OrderDuration duration
clientIdโ
public final String clientId
Allows to match order submission request to a response.
Randomly generated id 24 characters long - this allows to fit it into most tag fields
accountIdโ
public final String accountId
Account id to identify which account this order parameters belongs to. Should be null if there is no multi-account support from the provider side. Account id should be specified if there is multi-account support and the order should be sent to a specific account. If account id is set to null, but provider supports multi-account, the order will be sent to the primary account.
Constructorsโ
SingleOrderSendParametersโ
@Deprecated
protected SingleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, String clientId)
Deprecated: Use AbstractSingleOrderSendParametersBuilder instead
SingleOrderSendParametersโ
@Deprecated
protected SingleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration)
Deprecated: Use AbstractSingleOrderSendParametersBuilder instead
Methodsโ
getTradingAccountIdโ
public String getTradingAccountId()
Specified by: getTradingAccountId in interface MultiAccountAware
toStringโ
public String toString()
Overrides: toString in class Object
Methods inherited from class java.lang.Object: clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait