Client Management Systems API

Request to retrieve the net positions from an account.


The following input parameters are available in the request.

Parameter

Mandatory

Description

SessionID

Y

SessionID returned by the Login Request

AccountNumber

N

The Account number to retrieve net positions from.
The Account number OR the Counterpart id must be supplied.

CounterpartId

N

The Counterpar id to retrieve net positions from.
The Account number OR the Counterpart id must be supplied.

InstrumentTypes

Y

The instruments to include
An array of strings

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" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
   <soapenv:Header>
     <ns:SessionId>string</ns:SessionId>
   </soapenv:Header>
   <soapenv:Body>
     <ns:GetNetPositionsRequest>
       <!-Optional:->
       <ns:AccountNumber>string</ns:AccountNumber>
       <!-Optional:->
       <ns:CounterpartId>int</ns:CounterpartId>
       <!-Optional:->
       <ns:InstrumentTypes>
         <!-Zero or more repetitions:->
         <arr:string>string</arr:string>
       </ns:InstrumentTypes>
     </ns:GetNetPositionsRequest>
   </soapenv:Body>
 </soapenv:Envelope>


 Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
     <ActivityId CorrelationId="32883227-cea9-41ae-a6b6-2bb82814d494" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">374e2fa5-c5fb-4e1a-8771-f7c0ddcfce92</ActivityId>
   </s:Header>
   <s:Body>
     <GetNetPositionsResponse xmlns="http://www.saxobank.com/service/cms/2013/08">
       <NetPositions xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <NetPosition>
           <Amount>decimal</Amount>
           <PriceDecimals>int</PriceDecimals>
           <ValueDate>DateTime</ValueDate>
           <ExpiryDate>DateTime</ExpiryDate>
           <LowerBarrier>decimal</LowerBarrier>
           <UpperBarrier>decimal</UpperBarrier>
           <ExpiryCut>string</ExpiryCut>
          <BarrierEventTime>DateTime</BarrierEventTime>
           <StrikePrice>decimal</StrikePrice>
           <Instrument>string</Instrument>
           <InstrumentType>string</InstrumentType>
         </NetPosition>
       </NetPositions>
     </GetNetPositionsResponse>
   </s:Body>
 </s:Envelope>

Code Examples

Code example 36: GetNetPositions Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
   <soapenv:Header>
     <ns:SessionId>QAs01NW22ajBAsjFZTGM</ns:SessionId>
   </soapenv:Header>
   <soapenv:Body>
     <ns:GetNetPositionsRequest>
       <ns:CounterpartId>3006888</ns:CounterpartId>
       <ns:InstrumentTypes>
         <arr:string>All</arr:string>
       </ns:InstrumentTypes>
     </ns:GetNetPositionsRequest>
   </soapenv:Body>
 </soapenv:Envelope> 


Code example 37: GetNetPositions Response

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
     <ActivityId CorrelationId="32883227-cea9-41ae-a6b6-2bb82814d494" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">374e2fa5-c5fb-4e1a-8771-f7c0ddcfce92</ActivityId>
   </s:Header>
   <s:Body>
     <GetNetPositionsResponse xmlns="http://www.saxobank.com/service/cms/2013/08">
       <NetPositions xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <NetPosition>
           <Amount>12584</Amount>
           <PriceDecimals>5</PriceDecimals>
           <ValueDate>2015-02-05T00:00:00</ValueDate>
           <ExpiryDate>1899-12-30T00:00:00</ExpiryDate>
           <LowerBarrier>0</LowerBarrier>
           <UpperBarrier>0</UpperBarrier>
           <ExpiryCut></ExpiryCut>
           <BarrierEventTime>1899-12-30T00:00:00</BarrierEventTime>
           <StrikePrice>0</StrikePrice>
           <Instrument>AUDCAD</Instrument>
           <InstrumentType>FxSpot</InstrumentType>
         </NetPosition>
       </NetPositions>
     </GetNetPositionsResponse>
   </s:Body>
 </s:Envelope>