Skip to main content
POST
newOrder

Headers

Authorization
string<JWT>
required

User API token.

Body

application/json
strategy_id
string
required

AlphaInsider strategy identifier.

stock_id
string
required

AlphaInsider stock identifier, or SYMBOL:EXCHANGE in requests.

action
enum<string>
required

Order action.

Available options:
buy,
sell
type
enum<string>
required

Type of order.

Available options:
market,
limit,
stop_market,
stop_limit,
oco
amount
string<double(30,15)>

Positive normalized quantity to receive on a buy or remove on a sell. Supply exactly one of amount or total.

total
string<double(30,15)>

Positive normalized cash to spend on a buy or receive on a sell, with fee effects included. Supply exactly one of amount or total.

price
string<double(30,15)>

Positive market-price limit. Required for limit, stop_limit, and oco orders.

stop_price
string<double(30,15)>

Positive market-price trigger. Required for stop_market, stop_limit, and oco orders.

order_dependencies
string[]

Same-strategy open order IDs to wait on. Removal by execution or cancellation releases the dependency; it does not prove a fill.

Response

Request was successful.

success
boolean

True when the request succeeded.

response
object

Endpoint-specific response payload, or an error message when success is false.