Endpoint Parameters
-
Request parameters
Name Type Origin Description Arguments MultiLegPriceRequest Body Arguments for the subscription request. ContextId String Body The streaming context id that this request is associated with. This parameter must only contain letters (a-z) and numbers (0-9) as well as - (dash) and _ (underscore). It is case insensitive. Max length is 50 characters. Format String Body Optional Media type (RFC 2046) of the serialized data updates that are streamed to the client. Currently only application/json and application/x-protobuf is supported. If an unrecognized format is specified, the subscription end point will return HTTP status code 400 - Bad format. ReferenceId String Body Mandatory client specified reference id for the subscription. This parameter must only contain alphanumberic characters as well as - (dash) and _ (underscore). Cannot start with _. It is case insensitive. Max length is 50 characters. RefreshRate Integer Body Optional custom refresh rate, measured in milliseconds, between each data update. Note that it is not possible to get a refresh rate lower than the rate specified in the customer service level agreement (SLA). ReplaceReferenceId String Body Reference id of the subscription that should be replaced. Tag String Body Optional client specified tag used for grouping subscriptions. -
Response Parameters
View Response CodesName Type Description ContextId String The streaming context id that this response is associated with. Format String The media type (RFC 2046), of the serialized data updates that are streamed to the client. InactivityTimeout Integer The time (in seconds) that the client should accept the subscription to be inactive before considering it invalid. ReferenceId String The reference id that (along with streaming context id and session id) identifies the subscription (within the context of a specific service/subscription type) RefreshRate Integer Actual refresh rate assigned to the subscription according to the customers SLA. Snapshot MultiLegPriceResponse Snapshot of the current data on hand, when subscription was created. State String This property is kept for backwards compatibility. Tag String Client specified tag assigned to the subscription, if specified in the request. Streaming Response Parameters
Name Type Description Data MultiLegPriceResponse The type of data transported by the DomainEvent instance (e.g. price update, position list update etc.). PartitionNumber Integer The partition number if this DomainEvent is a partition. ReferenceId String Client specified id, which is sent back to the client with every data update. Timestamp UtcDateTime The UTC date and time of the event. TotalPartitions Integer The total number of partitions if this DomainEvent is a partition. -
Request Example
Request URL
POST /trade/v1/prices/multileg/subscriptions
Request Body
{ "Arguments": { "AccountKey": "01b64edf-da03-4145-bf33-ae21527d4c86", "DeltaHedgeType": "Spot", "ExpiryCut": "Warsaw", "FieldGroups": [ "MarginImpactBuySell" ], "Legs": [ { "Amount": 10, "AssetType": "CertificateCappedCapitalProtected", "BuySell": "Buy", "ExpiryDate": "2025-12-29T13:45:08.08407Z", "OrderContext": {}, "PutCall": "Put", "StrikePrice": 10, "ToOpenClose": "Undefined", "Uic": 99 } ] }, "ContextId": "-", "Format": "stringValue", "ReferenceId": "-", "RefreshRate": 8, "ReplaceReferenceId": "-", "Tag": "stringValue" }
-
Response Example
Response body
{ "ContextId": "stringValue", "Format": "stringValue", "InactivityTimeout": 99, "ReferenceId": "stringValue", "RefreshRate": 99, "Snapshot": { "BuySell": "Buy", "Commissions": { "CostBuy": 0, "CostIpoCashSubscription": 0, "CostIpoSubscription": 0, "CostSell": 0 }, "DeltaHedgeData": { "Amount": 10, "BuySell": "Buy", "IsTradable": true, "ValueDate": "2026-11-12T10:29:28.930914Z" }, "FxOptionStrategyType": "Seagull", "Greeks": { "Delta": 1, "Gamma": 0, "MidVol": 0, "Phi": 0, "Rho": 0, "Theta": -0.0375, "Vega": 0 }, "InstrumentPriceDetails": { "AverageVolume": 12345000, "Barrier": 1, "ExpiryDate": "2017-06-01T00:00:00Z", "IsMarketOpen": true, "LowerBarrier": -2, "MidForwardPrice": 1.71992423552514, "ShortTradeDisabled": false, "SpotAsk": 1.71782, "SpotBid": 1.71692, "SpotDate": "2017-06-03T00:00:00Z", "SpreadStrikePriceLower": 11, "SpreadStrikePriceUpper": 12, "StrikePrice": 1.7175, "UpperBarrier": 4, "ValueDate": "2017-06-05T00:00:00Z" }, "LastUpdated": "2021-05-21T00:00:00Z", "Legs": [ { "Amount": 10, "AssetType": "CertificateCappedOutperformance", "BuySell": "Sell", "Greeks": { "Delta": 1, "Gamma": 0, "MidVol": 0, "Phi": 0, "Rho": 0, "Theta": -0.0375, "Vega": 0 }, "InstrumentPriceDetails": { "AverageVolume": 12345000, "Barrier": 1, "ExpiryDate": "2017-06-01T00:00:00Z", "IsMarketOpen": true, "LowerBarrier": -2, "MidForwardPrice": 1.71992423552514, "ShortTradeDisabled": false, "SpotAsk": 1.71782, "SpotBid": 1.71692, "SpotDate": "2017-06-03T00:00:00Z", "SpreadStrikePriceLower": 11, "SpreadStrikePriceUpper": 12, "StrikePrice": 1.7175, "UpperBarrier": 4, "ValueDate": "2017-06-05T00:00:00Z" }, "LegId": "stringValue", "PutCall": "None", "Quote": { "Amount": 100000, "Ask": 1.0899, "Bid": 1.0897, "DelayedByMinutes": 15, "ErrorCode": "None", "Mid": 1.0898, "PriceTypeAsk": "Indicative", "PriceTypeBid": "Indicative" }, "ToOpenClose": "ToClose", "Uic": 99 } ], "MarginImpactBuySell": { "Currency": "USD", "InitialMarginAvailableBuy": 10447, "InitialMarginAvailableCurrent": 10470, "InitialMarginBuy": 12, "MaintenanceMarginBuy": 11 }, "MarketState": "PostMarket", "PriceSource": "stringValue", "Quote": { "Amount": 100000, "Ask": 0.02257, "Bid": 0.01962, "DelayedByMinutes": 15, "ErrorCode": "None", "Mid": 0.0210958157864443, "PriceTypeAsk": "Indicative", "PriceTypeBid": "Indicative", "RFQState": "None" }, "StrategyType": "IronCondor" }, "State": "Active", "Tag": "stringValue" }
-
Streaming Response Example
Response body
""