create_order
Submit trading orders on the Paper platform, specifying portfolio, stock symbol, quantity, order side, type, and other parameters for execution.
Instructions
Create a new trading order
Input Schema
Name | Required | Description | Default |
---|---|---|---|
assetClass | No | Asset class (default: EQUITY) | |
limitPrice | No | Limit price (for limit orders) | |
portfolioId | Yes | Portfolio ID | |
quantity | Yes | Number of shares | |
session | No | Trading session (default: REGULAR) | |
side | Yes | Order side | |
stopPrice | No | Stop price (for stop orders) | |
symbol | Yes | Stock symbol | |
timeInForce | No | Time in force (default: DAY) | |
type | Yes | Order type |
Input Schema (JSON Schema)
{
"properties": {
"assetClass": {
"description": "Asset class (default: EQUITY)",
"type": "string"
},
"limitPrice": {
"description": "Limit price (for limit orders)",
"type": "number"
},
"portfolioId": {
"description": "Portfolio ID",
"type": "string"
},
"quantity": {
"description": "Number of shares",
"type": "number"
},
"session": {
"description": "Trading session (default: REGULAR)",
"type": "string"
},
"side": {
"description": "Order side",
"enum": [
"BUY_TO_OPEN",
"SELL_TO_CLOSE",
"SELL_TO_OPEN",
"BUY_TO_CLOSE"
],
"type": "string"
},
"stopPrice": {
"description": "Stop price (for stop orders)",
"type": "number"
},
"symbol": {
"description": "Stock symbol",
"type": "string"
},
"timeInForce": {
"description": "Time in force (default: DAY)",
"enum": [
"DAY",
"GTC",
"IOC",
"FOK"
],
"type": "string"
},
"type": {
"description": "Order type",
"enum": [
"MARKET",
"LIMIT",
"STOP",
"STOP_LIMIT"
],
"type": "string"
}
},
"required": [
"portfolioId",
"symbol",
"quantity",
"side",
"type"
],
"type": "object"
}