Using Datastream functions in DSWS

Hi, is it possible to use Datastream aggregation functions in DSWS? E.g. sth like F:VIE(SUM#(X(UDD),2023-01-09,2025-05-02))? Thx
PS: Sorry if the question was already asked, the gateway was down so I couldnt perform a search…
Answers
-
Thank you for reaching out to us.
Is it this one?
df = ds.get_data(tickers="F:VIE|E", fields = [ "SUM#(X(UDD),2023-01-09,2025-05-02)"], kind=1) df
I am using the Datastream Web Service.
0 -
Hi Jirapongse, thank you very much. I have just realised that I wasn't precise with my question. I realised I am using DSS REST, making a request using the HTTPS Post method and XML… The response I am getting from the server is $$"ER","E21B","INVALID CODE F:VIE(SUM#(UDD,2023-01-13,2025-05-09)) ",
0 -
Please share the HTTPS Post message that you are using.
0 -
This is the message I am using: (I replaced the TokenValue with XXX)
<DSGetDataRequest xmlns="http://dsws.datastream.com/client/V1/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><DataRequest><DataTypes/><Date><End></End><Frequency>Y</Frequency><Kind>Snapshot</Kind><Start></Start></Date><Instrument><Properties><DSStringObjectKVPair xmlns="http://dsws.datastream.com/client/V1/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Key>IsExpression</Key><Value i:nil="true"/></DSStringObjectKVPair></Properties><Value>F:VIE(SUM#(UDD,2023-01-13,2025-05-09))</Value></Instrument><Tag i:nil="true"/></DataRequest><TokenValue>XXX</TokenValue></DSGetDataRequest>0 -
It could be the DSWS SOAP API.
You can check the request message from this website (https://product.datastream.com/DswsClient/Docs/TestSoapV1.aspx).
The request message is:
<GetData xmlns="http://dsws.datastream.com/client/V1/"> <request xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <DataRequest> <DataTypes> <DSDataType> <Properties i:nil="true"/> <Value>(SUM#(UDD,2023-01-13,2025-05-09))</Value> </DSDataType> </DataTypes> <Date> <End/> <Frequency/> <Kind>TimeSeries</Kind> <Start/> </Date> <Instrument> <Properties> <DSStringObjectKVPair> <Key>IsExpression</Key> <Value i:type="d9p1:boolean" xmlns:d9p1="http://www.w3.org/2001/XMLSchema">true </Value> </DSStringObjectKVPair> </Properties> <Value>F:VIE</Value> </Instrument> <Tag i:nil="true"/> </DataRequest> <Properties i:nil="true"/> <TokenValue><token></TokenValue> </request> </GetData>
0 -
Hi, unfortunately, this does not produce the intended result. Instead of delivering the sum of unadjusted dividends for F:VIE over the time period from 13-jan-2023 to 9-May-2025 (a snapshot), it returns the price of the security. Any idea why the calculation is not performing?
0 -
Do you have a working formula used in Excel?
Otherwise, please contact the Datastream support team directly via MyAccount.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛