Skip to main content

Option Allocation Order

Create an Options Allocation Order.

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

Request

Query Parameters

NameData TypeDescription
verifyOnlyBooleanTrue: does not submit order. Response body will not return an orderId <br/> False: immediately submits order through API. If the order is successfully, the Response Body will return an orderId`

Body

The Request Body to create an Options Allocation 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
accountNumberString8Internal identifier
blockOrderIdString32Unique ID generated by the Stock Exhange
accountTypeStringCash, Margin, Short
noPostageBooleanTrue or False
allOrNoneBooleanTrue or False
ttoRepStringCharacter field
commissionTypeStringFlatRate, CentsPerShare, PercentOfDiscount, Zero, Unknown, CommissionSchedule
commissionScheduleIntegerCharacter field
commissionAmountNumber$ amount for commission
confirmNoteStringCharacter field
underlyingSymbolStringCusip, Isin, Sedol, Symbol
expirationDateString(date-time)
putCallIndicatorStringPut, Call
strikePriceNumberThe price at which a Put or Call can be exercised
quantityNumberAmount
actionStringBuy, Sell, BuyToCover, SellShort
timeInForceStringDay, GoodTillCancel, FillOrKill, GTXPre, NTE

Response

Responses from the request will return with a Status Code.

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