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)>

Number of shares to trade.

total
string<double(30,15)>

Cash allocated towards order.

price
string<double(30,15)>

Price to make trade at.

stop_price
string<double(30,15)>

Price to trigger order.

order_dependencies
string[]

An array of order IDs to wait for before this order can be executed.

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.