‘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
FIXML All in One Request
FpML All in One Request
Cross Margin IRS and Futures
Polling For Your Results
Use the Id (id="123456" in this case) and use it to poll for your margin results.