# 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 allow closing orders to filter through a [Trading Window](https://docs.crosstrade.io/webhooks/advanced-options/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.

{% hint style="warning" %}
FLATPLACE only closes open positions in the underlying instrument. It will not close any open limit orders. Using a PLACE command with flatten\_first will close both open positions and pending orders.
{% endhint %}

## 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. &#x20;

### **Buy or Sell (Market Orders)** <a href="#buy-or-sell-market-orders" id="buy-or-sell-market-orders"></a>

#### **Using FLATPLACE Order Command**

```
key=your-secret-key;
command=flatplace;
account=sim101;
instrument=ES1!;
action=buy;
qty=1;
order_type=market;
tif=day;
```

#### **Using PLACE Order Command**

```
key=your-secret-key;
command=place;
account=sim101;
instrument=ES1!;
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](https://docs.crosstrade.io/webhooks/commands/place-order) and [Examples](https://docs.crosstrade.io/webhooks/examples-and-use-cases) pages for more use cases.  &#x20;
