How to Grab Bid & Ask at Certain times using Excel add on

Hi,
I've been trying to make a formula to try and grab the Bid and Ask price at certain times using the Excel add on for Refinitiv.
I've tried to use the =RHistory formula to do this using preset data to the left of formula as seen in the example below.
=INDEX(RHistory($D2,"TRDPRC_1","START:"&TEXT($A2,"dd-mmm-yyyy")&":"&TEXT($B2,"hh:mm:ss")&" END:"&TEXT($A2,"dd-mmm-yyyy")&":"&TEXT($B2+TIME(0,1,0),"hh:mm:ss")&" INTERVAL:1M",,),1,5)
Unfortunately, it seems this formula isn't what I need or not the correct formula to use for that function.
Is there a recommended way to do to this using the Windows 11 excel add on version?
Many thanks!
James
Answers
-
Thank you for reaching out to us.
For the LSEG Workspace Excel, it should be like this:
=RDP.HistoricalPricing($D$2,"TRDPRC_1","START:"&$A$2&" END:"&$C$2&" INTERVAL:PT1M SOURCE:RFV",,)
0 -
Thank you Jirapongse, this has worked great!
Obviously this needs a start and end time for the formula to work and below is what I've manage to get to work
=RDP.HistoricalPricing($E$2,"BID","START:"&$F$2&" END:"&$G$2&" INTERVAL:PT1M SOURCE:RFV TIMEZONE:UTC",,)
I've added the timezone as I was unable to reconcile the figures at first and this made it easier.
But, is there a way to only use 1 time and have that be a range and find the nearest bid and ask to that time instead of Start and End?
Reason being, lets say 15:00:00 UTC (to have US and UK markets open) and then the formula finding the closest Ask or Bid in that range giving only 1 result for each?
In that the range I would set would be start 18/09/2025 15:00:00 and End 15:00:00 but not all asset would have a BID/ASK in that 1 min period and sometimes give back a 'NA'
For example, if I use a bunch of OTC stocks - I will sometimes get a BID and not an ASK and Vice versa - I need to increase the interval to 5 mins to get a result - Which is fine but I wanted to know if there was a better way.
E.g. RIC - KNRRY.PQ / VSTTF.PQ
Many thanks!
0 -
RDP.HistoricalPricing is used to retrieve time series data within a specified range and interval. If it returns data outside the defined parameters, this may indicate a potential issue with the function.
However, please contact the Workspace Excel support team directly via LSEG Support to verify or enhance its behavior.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 710 Datastream
- 1.5K DSS
- 637 Eikon COM
- 5.3K Eikon Data APIs
- 18 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 10 Trading API
- 3K Elektron
- 1.5K EMA
- 260 ETA
- 571 WebSocket API
- 42 FX Venues
- 16 FX Market Data
- 2 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 26 Messenger Bot
- 4 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 284 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 25 RDMS
- 2.3K Refinitiv Data Platform
- 17 CFS Bulk File/TM3
- 928 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 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
- 46 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
- 126 Open DACS
- 1.1K RFA
- 108 UPA
- 197 TREP Infrastructure
- 232 TRKD
- 924 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 106 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛