How to make faster the speed of stream data when used .net c#?
When I used the code to get the 5 minutes data of OHLC , it will update data every 1 minute, how to make the update frequency more faster?
subscriptions.Add(timeSeries.SetupDataSubscription("2330.TW")
.WithView("BID")
.WithAllFields()
.WithInterval(CommonInterval.Intraday5Minutes)
.From(DateTime.Now.AddHours(-96))
//.WithNumberOfPoints(4)
.OnDataReceived(DataReceivedCallback)
.OnDataUpdated(DataUpdatedCallback)
.CreateAndStart()
);
Best Answer
-
Now I see what you mean. Because the delayed data is heavily conflated on the streaming network, you cannot construct true bars from updates you receive in your subscriptions unless you're entitled to real-time data from the exchange. If you're only entitled to delayed data, then the only way to get true bars is from the timeseries database (this is the data you get into OnDataReceived event).
0
Answers
-
@andy.ej have you tried subscribing to the real-time service instead? You will have to construct you own OHLC, but the streaming data will be real-time.
0 -
@andy.ej
In your example the expected behavior is that OnDataUpdated event should be raised every time an update on the BID field is received on the real-time data stream. If you only get one update a minute I suspect you're probably not entitled to real-time data from Taiwan Stock Exchange, therefore the data you retrieve is for the delayed RIC "/2330.TW", which is updated once a minute. Can you confirm if you're entitled to real-time data from Taiwan Stock Exchange?0 -
1. how to check that I can use the real-time data in Taiwan Stock
2.You mean I chose the 'BID' field to trigger the update event ,so what is the best field that I should chose ?
0 -
1. Type in 2330.TW in the main Eikon command/search bar and hit Enter to display the Company Overview app. Do you see the clock icon with the tooltip "Delayed XX minutes" next to the stock quote as in the screenshot below
2. I'm not sure I understand what you're saying here. You should choose the view you're interested in. If you're interested in retrieving bid or ask quotes for the stock use WithView("BID") or WithView("ASK") respectively. If you're interested in retrieving the trade price omit the WithView method (the trade price is the default view for stocks) or choose view "TRDPRC_1".
0 -
I have checked that not entitled to real-time data, but even though I should have the right to get the complete data, I found the api just trigger when have NewPoint-data ,at the same time it should send the previous k-bar data. It will missing the last-close data every 5-minutes bar. How can I get the complete-data?
0 -
I'm not sure I quite understand what you're saying. It would be helpful if you could describe your experience as a step by step replication procedure. New data points are delivered into OnDataUpdated event, which in your case will be happening once a minute provided there was a price update in the corresponding one minute interval. The backfill history (the timeseries of 5 minute bars) are delivered into OnDataReceived event, which is raised one or more times after the timeseries subscription is created and sent, but is not raised when an update is received from real-time or delayed stream.
0 -
for example:
there are four fields:
1:updat or newpoint event,2:trigger time 3:bar time 4:close
update 9:15:20 9:15 23.2
update 9:16:21 9:15 23.1
update 9:17:22 9:15 23.4
update 9:18:21 9:15 23.5
update 9:19:21 9:15 23.5 **(missing 9:19:22-9:19:59 data)
newpoint 9:20:01 9:20 23.5
update 9:21:11 9:20 23.5
I meant the price data between 9:19-9:20 are missing ,how to get the complete data
Thanks
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 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
- 248 ETA
- 552 WebSocket API
- 37 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.8K Refinitiv Data Platform
- 622 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛