Place an order
Places a new order. After the creation request for the order is accepted, further processing takes place asynchronously.
Headers
A UUID to be used as an idempotency key. This prevents a duplicate request from being replayed. https://docs.upvest.co/documentation/concepts/api_concepts/idempotency
Request body
The ID of the user. Either user ID or business ID must be specified.
The ID of the business. Either user ID or business ID must be specified.
The ID of the account that owns the order
Cash amount for a nominal order, not required if a share quantity is specified.
The currency for the order.
Side of the order.
- BUY -
- SELL -
International securities identification number defined by ISO 6166.
The type of the ID used in the request.
- ISIN -
Type of the order.
- MARKET -
- LIMIT -
- STOP -
Quantity of securities for the order. Only required if the cash amount is not specified.
Only applicable if the user has failed the instrument fit check for the instrument type being ordered. True if the user has acknowledged their willingness to trade.
The limit price for orders of the type 'limit'.
The stop price for orders of the type 'stop'.
The order expiration date (last day the order can trade) in the YYYY-MM-DD format. The expiry date can only be set for LIMIT and STOP orders. RFC 3339, section 5.6 RFC 3339. The default value is order creation date + 359 days
Immutable reference to the API flow that initiated the order. For client initiated API flows, this is a client provided ID. For internal initiations, it is set to the ID of the related object.
Execution flow that the order processing goes through. If no value is specified, the default value is assumed - STRAIGHT_THROUGH.
- STRAIGHT_THROUGH -
- BLOCK -
ID of the user behind the decision to place an order. Required only if different from the user_id. (e.g. child account order placed by a guardian)
Response
The request for the order creation has been accepted for processing.
Date and time when the resource was created. RFC 3339-5, ISO8601 UTC
Date and time when the resource was last updated. RFC 3339-5, ISO8601 UTC
The ID of the user. Either user ID or business ID must be specified.
The ID of the business. Either user ID or business ID must be specified.
The ID of the account that owns the order
Cash amount for a nominal order, not required if a share quantity is specified.
The currency for the order.
Side of the order.
- BUY -
- SELL -
International securities identification number defined by ISO 6166.
The type of the ID used in the request.
- ISIN -
Type of the order.
- MARKET -
- LIMIT -
- STOP -
Quantity of securities for the order. Only required if the cash amount is not specified.
Only applicable if the user has failed the instrument fit check for the instrument type being ordered. True if the user has acknowledged their willingness to trade.
The limit price for orders of the type 'limit'.
The stop price for orders of the type 'stop'.
The order expiration date (last day the order can trade) in the YYYY-MM-DD format. The expiry date can only be set for LIMIT and STOP orders. RFC 3339, section 5.6 RFC 3339. The default value is order creation date + 359 days
The execution status of the order.
- NEW -
- PROCESSING -
- FILLED -
- CANCELLED -
Reason for Order cancellation. The field is present in case the Order has a status of CANCELLED.
- CANCELLED_BY_CLIENT -
- CANCELLED_BY_UPVEST_OPERATIONS -
- CANCELLED_BY_TRADING_PARTNER -
- CANCELLED_BY_UPVEST_PLATFORM -
Initiation flow used during order creation, i.e. what triggered the order.
- API -
- PORTFOLIO -
- CASH_DIVIDEND_REINVESTMENT -
- PORTFOLIO_REBALANCING -
- SELL_TO_COVER_FEES -
- SELL_TO_COVER_TAXES -
- ACCOUNT_LIQUIDATION -
- UPVEST_OPERATIONS -
- SAVINGS_PLAN -
- CLIENT_OPERATIONS -
Execution flow that the order processing goes through. If no value is specified, the default value is assumed - STRAIGHT_THROUGH.
- STRAIGHT_THROUGH -
- BLOCK -
Immutable reference to the API flow that initiated the order. For client initiated API flows, this is a client provided ID. For internal initiations, it is set to the ID of the related object.
ID of the user behind the decision to place an order. Required only if different from the user_id. (e.g. child account order placed by a guardian)