‘ALL-IN-ONE’ margin call is an all-inclusive margin calculation request that allows a user to specify transactions and/or a portfolio id that was created using an earlier call. This call is limited to one portfolio at a time. This features allows a single asynchronous request to build a portfolio, add transactions, and request margin calculation.
Enabling ALL-IN-ONE Margin Call
To enable this feature, use the API version 1.1 schema or above or above and complete the following steps:
- Append a “?complete = true” request parameter to the margin request, such as /MarginServiceApi/margins?complete=true
- Include either transactions or a portfolio id in the ‘marginReq’ xml
Sample Request Message
Sample Response Message
Sample Request Formats
CSV All In One Request
FIXML All in One Request
FpML All in One Request
Cross Margin IRS and Futures All In One Request
JSON All In One Request
Risk API JSON or CSV format are the expected SPAN 2 input payload formats. These formats are supported for futures and options only and are also compatible with the deployable margin software program.
Additional details around building a Risk API format payload can be found here.
Polling For Your Results
Use the Id (e.g.="123456") and use it to poll for your margin results.