Flat Place Order

The FLATPLACE order command is virtually identical to using the PLACE order command with the flatten_first flag enabled. The only difference is syntax.

A potential benefit of using PLACE with flatten_first over FLATPLACE is if you want to allowing closing orders to filter through a Trading Window using the closing_only_after filter. If after the closing only time, the flatten_first is allowed to pass through, whereas FLATPLACE would be blocked outright.

Example Payloads

This example message will trigger a simple market order for BUY or SELL actions that will remain in-force for the rest of the trading day.

Buy or Sell (Market Orders)

Using FLATPLACE Order Command

key=your-secret-key;
command=FLATPLACE;
account=sim101;
instrument=NQ 12-24;
action=BUY;
qty=1;
order_type=MARKET;
tif=DAY;

Using PLACE Order Command

key=your-secret-key;
command=PLACE;
account=sim101;
instrument=NQ 12-24;
action=BUY;
qty=1;
order_type=MARKET;
tif=DAY;
flatten_first=true;

We will cease the examples here since all PLACE payloads will be identical to FLATPLACE payloads aside from the command name.

See the Place Order command and Examples pages for more use cases.

Last updated