Request to retrieve account data.
SuBject | URL |
WSDL | |
End Point URL | |
Operation | GetAccountData |
The following input parameters are available in the request.
Parameter | Mandatory | Description |
SessionID | Y | SessionID returned by the Login Request |
AccountNumber | Y | Id of the account, under which the account data is to be retrieved. |
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:GetAccountDataRequest> <!-Optional:-> <ns:AccountNumber>string</ns:AccountNumber> </ns:GetAccountDataRequest> </soapenv:Body> </soapenv:Envelope>
Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <ActivityId CorrelationId="c2bb118d-457a-4d76-8f76-24adda9a9adf" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">53038b15-510c-4e72-b4a5-df7ef24031e0</ActivityId> </s:Header> <s:Body> <GetAccountDataResponse xmlns="http://www.saxobank.com/service/cms/2013/08"> <AccountData xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <CounterpartId>int</CounterpartId> <AccountNumber>string</AccountNumber> <BaseCurrency>string</BaseCurrency> <CashBalance>decimal</CashBalance> <ClosingAmount>decimal</ClosingAmount> <TotalEquity>decimal</TotalEquity> <Securities>decimal</Securities> <NetExposure>decimal</NetExposure> <MarginRequired>decimal</MarginRequired> <NetFreeBalance>decimal</NetFreeBalance> <RealMarginPct>decimal</RealMarginPct> <RealLinePct>decimal</RealLinePct> <CostToClosePositions>decimal</CostToClosePositions> <NetEquityForMargin>decimal</NetEquityForMargin> <MarginProductsPL>decimal</MarginProductsPL> <Active>bool</Active> <CollateralMarketValue>decimal</CollateralMarketValue> <CollateralDeduction>decimal</CollateralDeduction> <TransactionsNotBooked>decimal</TransactionsNotBooked> <TransactionsNotBooked>decimal</TransactionsNotBooked> <OptionPremiumMarket>decimal</OptionPremiumMarket> </AccountData> </GetAccountDataResponse> </s:Body> </s:Envelope>
Code Examples
Code example 20: GetAccountData 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>QAs01NW22ajBAsjFZTGM</ns:SessionId> </soapenv:Header> <soapenv:Body> <ns:GetAccountDataRequest> <ns:AccountNumber>33930/Test125</ns:AccountNumber> </ns:GetAccountDataRequest> </soapenv:Body> </soapenv:Envelope>
Code example 21: GetAccountData Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <ActivityId CorrelationId="c2bb118d-457a-4d76-8f76-24adda9a9adf" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">53038b15-510c-4e72-b4a5-df7ef24031e0</ActivityId> </s:Header> <s:Body> <GetAccountDataResponse xmlns="http://www.saxobank.com/service/cms/2013/08"> <AccountData xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <CounterpartId>6602955</CounterpartId> <AccountNumber>33930/Test125</AccountNumber> <BaseCurrency>USD</BaseCurrency> <CashBalance>0</CashBalance> <ClosingAmount>0</ClosingAmount> <TotalEquity>0</TotalEquity> <Securities>0</Securities> <NetExposure>0</NetExposure> <MarginRequired>0</MarginRequired> <NetFreeBalance>0</NetFreeBalance> <RealMarginPct>0</RealMarginPct> <RealLinePct>0</RealLinePct> <CostToClosePositions>0</CostToClosePositions> <NetEquityForMargin>0</NetEquityForMargin> <MarginProductsPL>0</MarginProductsPL> <Active>true</Active> <CollateralMarketValue>0</CollateralMarketValue> <CollateralDeduction>0</CollateralDeduction> <TransactionsNotBooked>0</TransactionsNotBooked> </AccountData> </GetAccountDataResponse> </s:Body> </s:Envelope>