Skip to main content

Calculate provided portfolio's margin, pnl and option greeks.

POST 

/portfolio-margining/simulate

For a given portfolio of balances and positions (futures and options), calculate the margin requirements, pnl and option greeks.

Request

Query Parameters

    json anyrequired

    Request body as a JSON string

Responses

Simulated portfolio calculations

Schema
    oneOf
    maintenanceMargin doublerequired
    initialMargin doublerequired
    pnl doublerequired
    portfolioMarginBreakdown objectrequired

    Breakdown of components that make up the portfolio margin calculation.

    totalCrossAssetNettedMarketRisk doublerequired
    totalMarketRisk doublerequired
    totalScenarioPnls double[]
    totalAbsoluteOptionPositionDeltaNotional doublerequired
    netPortfolioDelta doublerequired
    totalPremium doublerequired
    isBuyOnly booleanrequired
    futuresMaintenanceMargin doublerequired
    greeks objectrequired
    property name* OptionGreeks

    Option Greeks

    iv doublerequired

    The implied volatility.

    delta doublerequired
    gamma double
    vega double
    theta double
    rho double
    result stringrequired

    Possible values: [success]

    serverTime date-timerequired

    Server time in Coordinated Universal Time (UTC)

Loading...