Skip to main content

Single Option Order

Create a Single Non-Discretionary, Single CAT, or Single Complex Options Order.

POST
/trading-api/v1/optionorder/create-single

Request Body

The Request Body to create a Single Non-Discretionary, Single CAT, or Single Complex Options Order includes several required fields. This ensures that the created order has all necessary parameters for the order to return with no errors.

This request must consist of the below Stonex identifiers:

AttributesData TypeLengthValue
accountNumberString32Account Identifier
inventoryAccountNumberString4Assigned Account identifier
inventorySubNumberString3Assigned Firm identifier
accountTypeStringCash, Margin, Short
noPostageBooleanTrue or False
allOrNoneBooleanTrue or False
solicitedBooleanTrue or False
notHeldBooleanTrue or False
stopPriceNumberPrice assigned to trigger a Stope order
limitPriceNumberPrice assigned to a Limit Order
ttoRepStringCharacter field
commissionTypeStringFlatRate, CentsPerShare, PercentOfDiscount, Zero, Unknown, CommissionSchedule
commissionScheduleIntegerCharacter field
commissionAmountNumber$ amount for commission
leg2Details
confirmNoteStringCharacter field
underlyingSymbolStringCusip, Isin, Sedol, Symbol
expirationDateString(date-time)
putCallIndicatorStringPut, Call
strikePriceNumberThe price at which a Put or Call can be exercised
quantityNumberAmount
actionStringBuyToOpen, BuyToClose, SellToOpen, SellToClose
timeInForceStringDay, GoodTillCancel, GTXPre

Verify Only

verifyOnly is a Query parameter that allows users to review the response of an order without creating the order.

AttributesData TypeValue
verifyOnlyBooleanTrue: does not submit order. Response body will not return an orderId
False: immediately submits order through API. If the order is successfull, the Response Body will return an orderId

Response Body

Responses from the request will return with a Status Code.

There are 3 Codes: Successful (200), Bad Request (400) and Internal Server Error (500).

Successful Response

The response for a Successful request will look like:

A successful request will respond with a result containing the account number and account status

AttributesData TypeLengthDescription
statusCodeInteger3Code identifies success of request
messageStringOutcome of request
dataData BlockMain field containing information of request
errorsErrorsAPI errors
traceIdStringUnique identifier
hasErrorsBooleanTrue or False