Place a new order. You can place various types of order such as limit, market, at best, previously quoted, stop, algo, pegged, and more. Under algo orders you can execute various strategies such as TWAP.
Returns status code 202 if your order is accepted by the system for processing. Use the query order endpoints to get the current status of your order Query order (client ID or all active orders) or Query order (server ID).
You can get all trades associated with an order using Query all trades on an order by ID. Trades contain information like counterparty, settlement date, and amount.
All place-order requests must have the following attributes:
coIdtypesidesymbolsizecurrency
Your request may require additional attributes based on the order type or attribute values.
For example, if you place an order with timeInForce=GTT (good-til-canceled) you must also specify expiryTime.
| Order type | Required attributes and values |
|---|---|
| Limit(IOC) | type=Limit, timeInForce=IOC, price |
| Limit(GTC) | type=Limit, timeInForce=GTC, price |
| Limit(GTT) | type=Limit, timeInForce=GTT, expiryTime, price |
| Market(IOC) | type=Market, timeInForce=IOC, price |
| At best | type=AtBest, timeInForce=FOK, valueDate |
| Stop | type=Stop, price, stopPrice, execFlags=BidTrigger|OfferTrigger|MidTrigger |
| Previously quoted | type=PQ, timeInForce=FOK, price, rateId |
| Algo (TWAP) | type=Algo, timeInForce=GTC, targetStrategy |
| On behalf of | price, org, account |
Buy or Sell from the order placer’s perspective and always for the dealt currency.
Base and term currency separated by a slash / (for example EUR/USD).
GTCIOCFOK(required for at-best orders)GTT(must specifyexpiryTime)DAY
Organization ID in Integral's system. If the order iss placed on behalf of another organization, this parameter contains the other organization's ID.
The ID of the account (legal entity) for which the order iss placed. Required when placing orders on behalf of another organization.
Expiry time when timeInForce=GTT. In seconds. Max value is one day (86399 seconds).
Execution strategy requested with order:
BidTrigger: Stay on bid sideMidTrigger: Mid priceOfferTrigger: Stay on offer side
Amount of the order visible to other market participants:
- 0 (zero) or undefined: Hidden: Order is not visible to other customers.
- Equal to
size: Display: Full order amount visible to other customers. - Less than
size: Iceberg: Only the value ofmaxShowvisible.
(Algo) The algo or strategy of the order:
MidFixingTwapLitSwitchDarkSwitch
(Algo) Relative time at which the strategy should start execution specified in the format HH:MM:SS.sss. If not specified, the strategy starts executing immediately.
(Algo) Absolute time in GMT at which the strategy should stop executing. If not specified, the order expires based on the value of its time in force.
The amount in pips that is added to the price of the peg. Can be positive or negative.
(Algo) Action taken at the end of the algo’s duration if there is an unfilled amount remaining. If not specified, the order is cancelled at expiration. NoAction, FillAtMarket, Twap
(Algo) Time for which each slice rests in OCX RiskNet. Specified in milliseconds. Overrides passiveTimeFactor.
(Algo) Determines how long each slice rests in OCX RiskNet, calculated as a percent of the actual slice interval. Required if passiveTime is not set
(Algo) Interval between slices in milliseconds. If the interval is fixed, this value is the interval duration. If the interval is randomized, this value is the upper boundary of random values.
(Algo) The percentage range that the sliceSize is randomized.
(Algo) The percentage range that the sliceInterval is randomized.
(Algo) If sliceSize undefined, the slice size is this percentage of the top-of-book price size.
Collection of parameters that are unique to your organization. The number of parameters, their keynames, and values are defined by you.
Contact your Integral Technical Account Manager to enable and configure custom parameters.
Your custom parameters are included in API responses and in STP trade download.
Custom parameters sent to Integral via API are stored in the database directly. No validation is performed.
The maximum size of the customParameter property is 3500 characters, including all keys, values, and JSON syntax characters.
- Place limit order (IOC)
- Place limit order (GTC)
- Place limit order w/ custom params
- Place at best order
- Place market order (IOC)
- Place stop order (GTC)
- Place previously quoted order
- Place on behalf of order
{ "coId": "8932452311944", "type": "Limit", "side": "Buy", "symbol": "EUR/USD", "currency": "EUR", "size": 1000000, "price": 1.0971678, "timeInForce": "IOC" }
- Order accepted by system.
- Response contains an order object with an
orderIdassigned by the system. - Use Query order (server ID) or Query order (client ID or all active orders) to get the current status of your order.
Buy or Sell from the order placer’s perspective and always for the dealt currency.
Base and term currency separated by a slash / (for example EUR/USD).
Organization ID in Integral's system. If the order was placed on behalf of another organization, this parameter contains the other organization's ID.
The ID of the account (legal entity) for which the order was placed. Required when placing orders on behalf of another organization.
Expiry time when timeInForce=GTT. In seconds. Max value is one day (86399 seconds).
Time the order was submitted in the format yyyy-MM-dd HH:mm:ss,SSS Z.
Algo: The algo or strategy of the order:
MidFixingTwapLitSwitchDarkSwitch
The original client order ID of the order to be cancelled or replaced by this request.
Execution strategy requested with order:
BidTrigger: Stay on bid sideMidTrigger: Mid priceOfferTrigger: Stay on offer side
Amount of the order visible to other market participants:
- 0 (zero) or undefined: Hidden: Order is not visible to other customers.
- Equal to
size: Display: Full order amount visible to other customers. - Less than
size: Iceberg: Only the value ofmaxShowvisible.
Average price of all fills so far. For orders and order types with timeInForce=FOK such as at-best orders, this is the filled price.
Fully qualified user name of order submitting user, including namespace and organization ID in the format userName@namespace.orgID.
RECEIVED: Order received.NEW: Order has been entered and is working according to the order type and specified execution strategy.PARTIALLY_FILLED: Trade done that does not completely fill the order.FILLED: Trade done that completely fills the order.PENDING_CANCEL: Cancel order request has been received and is in process.CANCELED: Order has been canceled.REPLACED: Order has been replaced with a new order.STOPPED: Price matching has been paused for the order.REJECTED: Order has been rejected.EXPIRED: Order expired.FAILED: Order failed.
Orders with status=FAILED or status=REJECTED, the reason for failure or rejection. INTERNAL_SERVER_ERROR indicates a serious error. Stop trading immediately and contact Business Support to resolve the issue.
Relative time at which the strategy should start execution specified in the format HH:MM:SS.sss. If not specified, the strategy starts executing immediately.
Absolute time in GMT at which the strategy should stop executing. If not specified, the order expires based on the value of its time in force.
The amount in pips that is added to the price of the peg. Can be positive or negative.
Action taken at the end of the algo’s duration if there is an unfilled amount remaining. If not specified, the order is cancelled at expiration. NoAction, FillAtMarket, Twap
Time for which each slice rests in OCX RiskNet. Specified in milliseconds. Overrides passiveTimeFactor.
Determines how long each slice rests in OCX RiskNet, calculated as a percent of the actual slice interval. Required if passiveTime is not set
Interval between slices in milliseconds. If the interval is fixed, this value is the interval duration. If the interval is randomized, this value is the upper boundary of random values.
The percentage range that the sliceInterval is randomized.
If sliceSize undefined, the slice size is this percentage of the top-of-book price size.
Collection of parameters that are unique to your organization. The number of parameters, their keynames, and values are defined by you.
Contact your Integral Technical Account Manager to enable and configure custom parameters.
Your custom parameters are included in API responses and in STP trade download.
Custom parameters sent to Integral via API are stored in the database directly. No validation is performed.
The maximum size of the customParameter property is 3500 characters, including all keys, values, and JSON syntax characters.
- Placed order response (limit IOC)
- Placed order response (limit GTC)
- Placed order response (custom parameters)
- Placed order response (at best)
- Placed order response (market)
- Placed order response (stop)
- Placed order response (previously quoted)
- Placed order response (on behalf of)
{ "coId": "8932452311944", "type": "Limit", "timeInForce": "IOC", "side": "Buy", "currency": "EUR", "symbol": "EUR/USD", "size": 1000000, "org": "BrokerOrg1", "price": 1.0971678, "orderId": "4820276016", "userFullName": "User1@pfOrg", "action": "place", "status": "RECEIVED" }