Create an Order
POST {{baseUrl}}/v2/orders
Places a new order for the given account. An order request may be rejected if the account is not authorized for trading, or if the tradable balance is insufficient to fill the order.
Request Body
{"symbol"=>"AAPL", "qty"=>"2", "side"=>"buy", "type"=>"limit", "limit_price"=>"150", "time_in_force"=>"gtc"}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Accept | string | ||
Apca-Api-Key-Id | string | ||
Apca-Api-Secret-Key | string |
RESPONSES
status: OK
{"id":"b3edb0f5-5950-4c7a-a472-ce64387a27d9","client_order_id":"cb7240f4-f2b1-464a-b2c2-4388b2de2082","created_at":"2024-03-22T20:40:50.916594602Z","updated_at":"2024-03-22T20:40:50.916637002Z","submitted_at":"2024-03-22T20:40:50.915476843Z","filled_at":null,"expired_at":null,"canceled_at":null,"failed_at":null,"replaced_at":null,"replaced_by":null,"replaces":null,"asset_id":"a1733398-6acc-4e92-af24-0d0667f78713","symbol":"ETH/USD","asset_class":"crypto","notional":null,"qty":"0.02","filled_qty":"0","filled_avg_price":null,"order_class":"","order_type":"limit","type":"limit","side":"buy","time_in_force":"gtc","limit_price":"2100","stop_price":null,"status":"pending_new","extended_hours":false,"legs":null,"trail_percent":null,"trail_price":null,"hwm":null,"subtag":null,"source":null}