Direct Trading

Create order request

Submit a new buy or sell order for equities or options. If the request is made outside of market hours, it will be queued and executed at the next market open.

post/api/v0.1/trading/accounts/{account-id}/order-requests

Request

  • Base URL: https://api.composer.trade (the document declares no server; this is the origin it was published from)
  • URL: https://api.composer.trade/api/v0.1/trading/accounts/{account-id}/order-requests
  • Auth: none declared

Path parameters

account-idstring uuid required

Unique identifier (UUID) of the account

Request body

type'MARKET' | 'LIMIT' | 'STOP' | 'STOP_LIMIT' | 'TRAILING_STOP' required
symbolstring required
time_in_force'GTC' | 'DAY' | 'IOC' | 'FOK' | 'OPG' | 'CLS' required
notionalnumber double nullable

Required if quantity is not provided.

quantitynumber double nullable

Required if notional is not provided.

position_intent'BUY_TO_OPEN' | 'SELL_TO_OPEN' | 'BUY_TO_CLOSE' | 'SELL_TO_CLOSE'

Required if the symbol is an option contract.

limit_pricenumber double nullable
stop_pricenumber double nullable
client_order_idstring nullable

Optional client-generated order ID, for order tracking and idempotency.

Response

Successfully created order request

order_request_idstring uuid required
order_timestring date-time required
commissionnumber required

Commission for the order.

Changes

No recorded changes to this operation across all 1 revision of this API.