Package velox.api.layer1.data
Class SingleOrderSendParameters
java.lang.Object
velox.api.layer1.data.SingleOrderSendParameters
- All Implemented Interfaces:
MultiAccountAware,OrderSendParameters
- Direct Known Subclasses:
SimpleOrderSendParameters
public class SingleOrderSendParameters
extends Object
implements OrderSendParameters, MultiAccountAware
Base class for sending a single order
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringAccount id to identify which account this order parameters belongs to.final StringAlias of the instrumentfinal StringAllows to match order submission request to a response.final OrderDurationfinal booleantrue for buy order, false for sell orderfinal OrderEntryTypeDescribes who sent this order (automatic system or the user).final intOrder size -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSingleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration) Deprecated.protectedSingleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, String clientId) Deprecated.UseAbstractSingleOrderSendParametersBuilderinstead -
Method Summary
-
Field Details
-
alias
Alias of the instrument -
isBuy
public final boolean isBuytrue for buy order, false for sell order -
size
public final int sizeOrder size -
duration
-
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
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. -
orderEntryType
Describes who sent this order (automatic system or the user). If initiator of this order is not the user, this field must be set toOrderEntryType.AUTO
-
-
Constructor Details
-
SingleOrderSendParameters
@Deprecated protected SingleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration, String clientId) Deprecated.UseAbstractSingleOrderSendParametersBuilderinstead -
SingleOrderSendParameters
@Deprecated protected SingleOrderSendParameters(String alias, boolean isBuy, int size, OrderDuration duration) Deprecated.UseAbstractSingleOrderSendParametersBuilderinstead
-
-
Method Details
-
toBuilder
-
getTradingAccountId
- Specified by:
getTradingAccountIdin interfaceMultiAccountAware
-
toString
-
AbstractSingleOrderSendParametersBuilderinstead