Entities
entities
Methods
List all available entities.
Get an entity by its ID.
Domain types
Pnl Summaries
entities.pnl_summaries
Methods
Get PNL summary for all accounts in an entity.
Portfolio Margins
entities.portfolio_margins
Methods
Get latest portfolio margin calculation for the given entity
Regt Margin Simulations
entities.regt_margin_simulations
Methods
Simulate Reg-T margin calculation for a given hypothetical set of prices and/or trades. This is useful for understanding the impact of price fluctuations or trades on margin requirements. Once a simulation is created, it remains available for 48-hours, after which it will automatically be deleted.
Simulations created through the API are visible in the Studio UI under the Risk & Margin section, after enabling the "Risk Simulations" toggle.
Get a Reg-T margin simluation that was previously created. Note, simulations are automatically deleted after 48-hours.
Domain types
Unique ID for a simulation.
Regt Margins
entities.regt_margins
Methods
Get the latest Reg-T margin calculation for the given entity