Place a multileg order with up to 4 legs. This order type allows for simple and complex option strategies.
Header | Required | Values/Example | Default |
---|---|---|---|
Accept | Optional | application/xml, application/json | application/xml |
Authorization | Required | Bearer {token} |
Note: the index for each leg starts at 0 and would go to 3 for 4 legs.
Parameter | Type | Param Type | Required | Values/Example | Default |
---|---|---|---|---|---|
account_id | Path | String | Required | VA000000 | |
Account number | |||||
class | Form | String | Required | multileg | |
The kind of order to be placed. | |||||
symbol | Form | String | Required | SPY | |
Underlying security symbol of the options | |||||
type | Form | String | Required | market | |
The type of order to be placed. One of: market, debit, credit, even
|
|||||
duration | Form | String | Required | day | |
Time the order will remain active. One of: day, gtc, pre, post
|
|||||
price | Form | String | Optional | 1.00 | |
Limit price. Required only for debit and credit orders. | |||||
option_symbol[index] | Form | String | Required | SPY190605C00282000 | |
OCC option symbol of the option to be traded for this leg | |||||
side[index] | Form | String | Required | buy_to_open | |
The side of the leg. One of: buy_to_open, buy_to_close, sell_to_open, sell_to_close
|
|||||
quantity[index] | Form | String | Required | 10 | |
The number of contracts for this leg | |||||
tag | Form | String | Optional | my-tag-example-1 | |
Order tag. Maximum lenght of 255 characters. Valid characters are letters, numbers and -
|
https://sandbox.tradier.com