logo
Options

Place an option strategy order

post
https://api.snaptrade.com/api/v1/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute

Places the option strategy order and returns the order record received from the brokerage.

Path
accountIdstring (format: uuid)required
The ID of the account to execute the strategy in.
optionStrategyIdstring (format: uuid)required
Option strategy id obtained from response when creating option strategy object
Query
userIdstringrequired
SnapTrade User ID
userSecretstringrequired
SnapTrade User Secret (generated when registering user)
Request Body
order_typestringrequired
Order Type
time_in_forcestringrequired
Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
pricenumber or null
Trade Price if limit or stop limit order

Responses

Authorization
Request
Installation
$
npm install snaptrade-typescript-sdk
1
Loading...