Place Order
### Make a request to place an order.
Depending on the order type, the parameters vary. In the Trader application, you can see the details of placing a standard order ticket by adding the Order Ticket module to your workspace.
#### *Market Order*
```js
const URL = 'demo.tradovateapi.com/v1'
const body = {
accountSpec: yourUserName,
accountId: yourAcctId,
action: "Buy",
symbol: "MYMM1",
orderQty: 1,
orderType: "Market",
isAutomated: true //must be true if this isn't an order made directly by a human
}
const response = await fetch(URL + '/order/placeorder', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Authorization': `Bearer ${myAccessToken}`,
},
body: JSON.stringify(body)
})
const json = await response.json() // { orderId: 0000000 }
```
#### *Sell Limit*
```js
const URL = 'demo.tradovateapi.com/v1'
const body = {
accountSpec: yourUserName,
accountId: yourAcctId,
action: "Sell",
symbol: "MYMM1",
orderQty: 1,
orderType: "Limit",
price: 35000, //use for single value like limit or stop
isAutomated: true //must be true if this isn't an order made directly by a human
}
const response = await fetch(URL + '/order/placeorder', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Authorization': `Bearer ${myAccessToken}`,
},
body: JSON.stringify(body)
})
const json = await response.json() // { orderId: 0000000 }
```

