Upvest Order Structure
Schema for validating Upvest Investment API order request payloads. Orders represent buy or sell instructions for financial instruments, processed asynchronously with status updates delivered via webhooks.
Upvest Order is a JSON Structure definition published by Upvest, describing 9 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
Properties
Meta-schema: https://json-structure.org/meta/core/v0/#
JSON Structure
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/upvest/refs/heads/main/json-structure/upvest-order-structure.json",
"name": "Upvest Order",
"description": "Schema for validating Upvest Investment API order request payloads. Orders represent buy or sell instructions for financial instruments, processed asynchronously with status updates delivered via webhooks.",
"type": "object",
"required": [
"account_id",
"instrument_id",
"side",
"type"
],
"properties": {
"account_id": {
"type": "uuid",
"description": "The unique identifier of the investment account to place the order for."
},
"instrument_id": {
"type": "uuid",
"description": "The unique identifier of the financial instrument to trade."
},
"side": {
"type": "string",
"enum": [
"BUY",
"SELL"
],
"description": "Whether to buy or sell the instrument."
},
"type": {
"type": "string",
"enum": [
"MARKET",
"LIMIT",
"STOP"
],
"description": "The order type. MARKET orders execute at the current market price. LIMIT orders execute at or better than the specified limit price. STOP orders become market orders when the stop price is reached."
},
"quantity": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"description": "The quantity of shares to trade as a decimal string. Either quantity or cash_amount must be provided."
},
"cash_amount": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"description": "The cash amount to invest as a decimal string. Used for fractional investing. Either quantity or cash_amount must be provided."
},
"limit_price": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"description": "The limit price as a decimal string. Required for LIMIT orders."
},
"stop_price": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"description": "The stop trigger price as a decimal string. Required for STOP orders."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "The order currency as an ISO 4217 three-letter currency code.",
"examples": [
"EUR",
"GBP",
"USD"
]
}
},
"definitions": {
"OrderResponse": {
"type": "object",
"description": "The full order object returned by the API after creation or retrieval.",
"properties": {
"id": {
"type": "uuid",
"description": "The unique identifier of the order."
},
"account_id": {
"type": "uuid",
"description": "The account the order belongs to."
},
"user_id": {
"type": "uuid",
"description": "The user who placed the order."
},
"instrument_id": {
"type": "uuid",
"description": "The instrument being traded."
},
"side": {
"type": "string",
"enum": [
"BUY",
"SELL"
],
"description": "Whether this is a buy or sell order."
},
"type": {
"type": "string",
"enum": [
"MARKET",
"LIMIT",
"STOP"
],
"description": "The order type."
},
"status": {
"type": "string",
"enum": [
"NEW",
"PROCESSING",
"FILLED",
"CANCELLED",
"REJECTED"
],
"description": "The current order status."
},
"quantity": {
"type": "string",
"description": "The order quantity as a decimal string."
},
"cash_amount": {
"type": "string",
"description": "The cash amount as a decimal string."
},
"limit_price": {
"type": "string",
"description": "The limit price as a decimal string."
},
"stop_price": {
"type": "string",
"description": "The stop price as a decimal string."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "The order currency."
},
"created_at": {
"type": "datetime",
"description": "When the order was placed."
},
"updated_at": {
"type": "datetime",
"description": "When the order was last updated."
}
},
"name": "OrderResponse"
}
}
}
Work with this as data
Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for json structure
4 MCP tools reach this
find_json_structuresBrowse and filter every JSON Structure in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-structures/upvest-order-structure"
curl "https://apis.io/api/v1/json-structures?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.