Endpoint Parameters
-
Request parameters
Name Type Origin Description AccountKey AccountKey Query-String Unique key identifying the account used in retrieving the price. Only required when calling context represents an authenticated user. OptionRootId Integer Query-String Id of the contract option root. OptionsStrategyType OptionsStrategyType Query-String The to get. -
Response Parameters
View Response CodesName Type Description Legs MultiLegOrderLeg [] List of suggested order legs for this option root and strategy. StrategyType OptionsStrategyType String identification -
Request Example
Request URL
GET /trade/v2/orders/multileg/defaults?AccountKey=01b64edf-da03-4145-bf33-ae21527d4c86&OptionRootId=99&OptionsStrategyType=Vertical
-
Response Example
Response body
{ "StrategyType": "Diagonal", "Legs": [ { "Uic": 99, "AssetType": "StockIndexOption", "BuySell": "Buy", "Amount": 10, "OptionData": { "PutCall": "Put", "StrikePrice": 10, "ExpiryDate": "2024-09-24T00:06:16.498393Z" } } ] }