PlaceOrderRequest
Note
For a more in depth documentation, you should check the comments from the protobuf file.
Purpose
Used for placing order on the current OE connection.
Mandatory fields
The mandatory fields for the place order request are order data information:
contract
- name of instrument/contractside
- order on sell or buy, value has aSide
type.quantity
- count of orders.orderType
- type or order (limit, market, stop, etc.), list of supported order type listed inOrderType
enum.lifeTime
- type of order life time, value has aOrderLifeTime
type.price
- the price at which the order will complete.limitPrice
- restriction on the maximum/minimum pricepositionType
- type of position (open/close), value has aPositionType
type.goodTillDate
- date on which the order will expire (timestamp value)sourceModule
- the name of the module from which you want to place the orderignoreValidation
- determine, if need to check validity of order.shouldWarnIfImmediatelyFilled
- determine, if need to send warning, if the order will be immediately filledfractionalQuantity
- specify the fractional quantity (standart, mini, micro). Value has aFractionalQuantity
typeoverrideAccount
- id of another account, from which need place order
Request example
const PlaceOrderRequest {
contract: "6BZ21",
side: "BUY",
quantity: 1,
orderType: "LMT_ORDER_TYPE",
lifeTime: "DAY_ORDER_LIFE_TIME",
price: 0.5,
goodTillDate: "1637798400000",
ignoreValidation: true
}
Responses
The server will respond with a PlaceOrderResponse
.