This request allows you to retrieve the net exposures of an account.
SuBject | URL |
WSDL | |
End Point URL | |
Operation | GetNetExposures |
The following input parameters are available in the request.
Parameter | Mandatory | Description |
SessionID | Y | SessionID returned by the Login Request |
AccountNumber | N | Id of the account from where to retrieve net exposure information. |
CounterpartId | N | Counterpart Id to retrieve Net Exposure information from. |
SOAP 1.2 Definition
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08"> <soapenv:Header> <ns:SessionId>string</ns:SessionId> </soapenv:Header> <soapenv:Body> <ns:GetNetExposuresRequest> <!-Optional:-> <ns:AccountNumber>string</ns:AccountNumber> <!-Optional:-> <ns:CounterpartId>int</ns:CounterpartId> </ns:GetNetExposuresRequest> </soapenv:Body> </soapenv:Envelope>
Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <ActivityId CorrelationId="6e074795-5959-4c1d-8ea6-85610dd1093d" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">0de254a2-92e2-41dc-a7bf-62687ad603d6</ActivityId> </s:Header> <s:Body> <GetNetExposuresResponse xmlns="http://www.saxobank.com/service/cms/2013/08"> <NetExposures xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <NetExposure> <Instrument>string</Instrument> <Amount>decimal</Amount> </NetExposure> </NetExposures> </GetNetExposuresResponse> </s:Body> </s:Envelope>
Code Examples
Code example 16: GetNetExposures Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08"> <soapenv:Header> <ns:SessionId>I593H9tCcXRdODJjMacayyCntVeb6SexjPC6IxhCvsE=</ns:SessionId> </soapenv:Header> <soapenv:Body> <ns:GetNetExposuresRequest> <ns:CounterpartId>3006888</ns:CounterpartId> </ns:GetNetExposuresRequest> </soapenv:Body> </soapenv:Envelope>
Code example 17: GetNetExposures Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <ActivityId CorrelationId="6e074795-5959-4c1d-8ea6-85610dd1093d" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">0de254a2-92e2-41dc-a7bf-62687ad603d6</ActivityId> </s:Header> <s:Body> <GetNetExposuresResponse xmlns="http://www.saxobank.com/service/cms/2013/08"> <NetExposures xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <NetExposure> <Instrument>AUD</Instrument> <Amount>12584</Amount> </NetExposure> <NetExposure> <Instrument>CAD</Instrument> <Amount>-12391.84232</Amount> </NetExposure> </NetExposures> </GetNetExposuresResponse> </s:Body> </s:Envelope>