Get Time and Sales Data

Sections

Theme switcher

Place OTO Order

Header Parameters

Content-Typestring Required

Request content type

Enum values:
application/x-www-form-urlencoded
Authorizationstring Required

Path Parameters

account_idstring Required

ID of the account

Body Parameters

classstring Required

Order class identifier

Enum values:
oto
durationstring Required

Time the order will remain active. One of: day, gtc, pre, post. For different durations per leg, duration can be specified as 0 indexed positions, ie duration[0]=day&duration[1]=gtc

Enum values:
daygtcprepost
symbol[0]string Required

The underlying security symbol

quantity[0]number Required

The number of contracts for the option leg

type[0]string Required

The type of order to be placed. First order, one of: limit, stop, stop_limit

Enum values:
limitstopstop_limit
option_symbol[0]string

OCC option symbol of the option

Show child attributes

side[0]string Required

The side of the leg. Equity orders, one of: buy, buy_to_cover, sell, sell_short Option orders, one of: buy_to_open, buy_to_close, sell_to_open, sell_to_close

Enum values:
buybuy_to_coversellsell_shortbuy_to_openbuy_to_closesell_to_opensell_to_close
price[0]number

Limit price. Required only for limit, stop_limit, debit and credit orders.

stop[0]number

Stop price. Required only for stop and stop_limit orders.

symbol[1]string Required

The underlying security symbol

quantity[1]number Required

The number of contracts for the option leg

type[1]string Required

The type of order to be placed. Second order, one of: market,limit, stop, stop_limit

Enum values:
marketlimitstopstop_limit
option_symbol[1]string

OCC option symbol of the option

Show child attributes

side[1]string Required

The side of the leg. Equity orders, one of: buy, buy_to_cover, sell, sell_short Option orders, one of: buy_to_open, buy_to_close, sell_to_open, sell_to_close

Enum values:
buybuy_to_coversellsell_shortbuy_to_openbuy_to_closesell_to_opensell_to_close
price[1]number

Limit price. Required only for limit, stop_limit, debit and credit orders.

stop[1]number

Stop price. Required only for stop and stop_limit orders.

tagstring

User-defined tag for the order

previewboolean

When true, validates the order without submitting it

Response

200
Object

Order response information

Response Attributes

orderobject

Show child attributes

400
Object

Invalid request parameters or body

401
Object

Authentication required or invalid credentials

403
Object

Access denied to the requested resource

404
Object

The requested resource was not found

Was this section helpful?

POST

/

Select
1

Response

Was this section helpful?