Create an Order for an Account
POST {{baseUrl}}/v1/trading/accounts/:account_id/orders
Creating an order for your end customer. Each trading request must pass in the account_id in the URL.
Note that when submitting crypto orders, Market, Limit and Stop Limit orders are supported while the supported timeinforce values are gtc, and ioc. We accept fractional orders as well with either notional or qty provided. Note that submitting an options order is only available for partners who have been enabled for Options BETA.
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 |
RESPONSES
status: OK
{"id":"38e482f3-79a8-4f75-a057-f07a1ec6a397","client_order_id":"5b5d3d67-06ad-4ffa-af65-a117d0fc5a59","created_at":"2023-12-12T22:36:51.337711497Z","updated_at":"2023-12-12T22:36:51.337754768Z","submitted_at":"2023-12-12T22:36:51.313261061Z","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}