Endpoint Parameters

  • Request parameters

    Name Type Origin Description
    AccountKey AccountKey Body Unique key identifying the account used in retrieving the price. Only required when calling context represents an authenticated user.
    FieldGroups MultiLegPriceFieldGroups [] Body Specification of fields to return in results
    Legs MultiLegStrategyLegRequest [] Body List of each desired legs in a multi-leg order/options strategy.
  • Response Parameters

    View Response Codes
    Name Type Description
    BuySell BuySell Indicates if the multi-leg strategy to be considered a net Buy or Sell. Please use this value when placing an order.
    Commissions Commissions The commissions
    Greeks Greeks Greeks - only available for options
    InstrumentPriceDetails InstrumentPriceDetails Instrument Specific Price Details. Contents vary by AssetType
    LastUpdated UtcDateTime Time of last price update
    Legs MultiLegOrderLegPriceLegResponse [] Prices details for each leg of a multi-legs instrument/order.
    MarginImpactBuySell MarginImpactBuySell The margin impact with currency and values for both buy and sell.
    MarketState MarketState The market state of exchange.
    PriceSource String The source for the price information
    Quote TradableQuote The tradable quote data.
    StrategyType OptionsStrategyType If non-custom multi-leg strategy, this is the common exchange traded options strategy name.
  • Request Example

    Request URL
    POST /trade/v1/prices/multileg
    Request Body
    {
      "AccountKey": "01b64edf-da03-4145-bf33-ae21527d4c86",
      "FieldGroups": [
        "Quote"
      ],
      "Legs": [
        {
          "Amount": 10,
          "AssetType": "Rights",
          "BuySell": "Sell",
          "ToOpenClose": "ToOpen",
          "Uic": 99
        }
      ]
    }
    
  • Response Example

    Response body
    {
      "BuySell": "Sell",
      "Commissions": {
        "CostBuy": 0,
        "CostIpoCashSubscription": 0,
        "CostIpoSubscription": 0,
        "CostSell": 0
      },
      "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": "WarrantKnockOut",
          "BuySell": "Buy",
          "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": "Closed",
      "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": "Butterfly"
    }