For a given portfolio of balances and positions (futures and options), calculate the margin requirements, pnl and option greeks.
Note: This is currently available exclusively in the Kraken Futures DEMO environment.
curl --request POST \
--url https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/simulate \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"maintenanceMargin": 123,
"initialMargin": 123,
"pnl": 123,
"portfolioMarginBreakdown": {
"totalCrossAssetNettedMarketRisk": 123,
"totalMarketRisk": 123,
"totalAbsoluteOptionPositionDeltaNotional": 123,
"netPortfolioDelta": 123,
"totalPremium": 123,
"isBuyOnly": true,
"futuresMaintenanceMargin": 123,
"totalScenarioPnls": [
123
]
},
"greeks": {},
"result": "success",
"serverTime": "2020-08-27T17:03:33.196Z"
}Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
General API key with at least read-only access
Authentication string
Simulated portfolio calculations
Breakdown of components that make up the portfolio margin calculation.
Show child attributes
Show child attributes
success "success"
Server time in Coordinated Universal Time (UTC)
"2020-08-27T17:03:33.196Z"
curl --request POST \
--url https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/simulate \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"maintenanceMargin": 123,
"initialMargin": 123,
"pnl": 123,
"portfolioMarginBreakdown": {
"totalCrossAssetNettedMarketRisk": 123,
"totalMarketRisk": 123,
"totalAbsoluteOptionPositionDeltaNotional": 123,
"netPortfolioDelta": 123,
"totalPremium": 123,
"isBuyOnly": true,
"futuresMaintenanceMargin": 123,
"totalScenarioPnls": [
123
]
},
"greeks": {},
"result": "success",
"serverTime": "2020-08-27T17:03:33.196Z"
}