When I used Eikon's function StreamingPrice, I tried to pull the value of CF_NETCHNG but got returne
When I used eikon's function StreamingPrice, I tried to pull the value of CF_NETCHNG but got returned NAN instead of 0. For LGOc1-LGOc2 the net change is 0 on screen but in API the value shown is NA it is just a bug in your API that needs to be fixed
Please advised as to why we are getting NAN using the above function but in Eikon, we have 0 values.
Checked this is CODEBK and Eikon Excel - Issue is not replicated. 0 values shows when extracted using these applications, same as quote and MON app
Best Answer
-
To confirm it, you need to enable the API log when the value is 0. In the log, you will see the retreived data.
For example, I tested with the /AJA.BK and the value of CF_NETCHNG is 0.It displays <NA> in the dataframe.
0
Answers
-
Thank you for reaching out to us.
I can run the code properly.
You may need to enable logging in the library by using the following code.
import eikon as ek
ek.set_log_level(1)
ek.set_app_key('...')
...0 -
hi @Jirapongse
Thanks for the quick turnaround.
The script the client is using is working however what we are getting is NA values instead of 0 which shows in Eikon MON and quote app.
I look for a different RIC that have 0 value for NET CHANGE. see the below screenshot
Instead of getting 0 as values, we are getting NA which is different from the quote app.
0 -
I ran the same code on CodeBook and got NA. After checking the log, it is a permission issue.
Please enable log in the Eikon Data API to verify what the problem is.
ek.set_log_level(1)
0 -
Hi @Jirapongse
Can you confirm why it is a permission issue?
The reason I ask is because the client and I can get the values using the same code if there is a value aside from 0.
The only time we get NA is when the values shows 0 in Eikon
I entered ek.set_log_level(1) and I dont see access denied.
0 -
Please run the following code on CodeBook to verify if it is a permission issue.
import eikon as ek
ek.set_log_level(1)
ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')
streaming_prices = ek.StreamingPrices(
instruments = ['LGOc1-LGOc2'],
fields = ['CF_NETCHNG'])
streaming_prices.open()
df = streaming_prices.get_snapshot()
streaming_prices.close()
display(df)Then, check for the following log.
0 -
Hello.
I ran the same script and I don't get access denied information
0 -
@jeremiemae.celajes
Thanks.
It means that you have permission to access this RIC so you should see the value (2.75) of CF_NETCHNG, not <NA>.
0 -
Can you confirm if I have the permission and in quote, net change is showing as "0", should I get NA or 0 in API?
Sample:
As you can see, I get NA in API even the values show as "0" in the quote app.
0 -
0
-
I should display 0, not <NA>.
I recommend to use the RD Library instead.
stream = rd.open_pricing_stream(
universe=['/AJA.BK'],
fields=['CF_NETCHNG']
)
stream.get_snapshot()0 -
0
-
0
-
That is not the RD library.
Please check the Content_Pricing_Snapshot.ipynb sample in CodeBook. The sample is in /_Examples/01. Data Retrieval and Discovery/01.01. Refinitiv Data Library/ directory.
0 -
Hi @Jirapongse
I was able to review the folder you shared in CODEBK however the issue is it seems Streaming Prices function is not recognizing the -0 or +0 in CODEBK.
Using the below function, we are able to get 0 values same as in Eikon.
Please confirm. Thanks
0 -
They are different methods so the behaviors are different.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛