Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by boyang.liu · Jul 29, 2020 at 07:37 PM · streaming price

Customised functions on streamed data

I tried the ek.StreamingPrices to retrieve some streaming prices and it works.

Now I would like to construct a customised index based on the those price, and would like to see the index going up and down based on the movement of streamed prices.

For example, i would like to have a stupid but simple index as AA = EURUSD rate + 2 * USDCHF rate. I would like to show the value of AA based on streamed prices, so AA is expected to fluctuate as EURUSD and USDCHF are changing all the times.

Any ideas on how to get this done? Thanks.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by chavalit.jintamalit · Jul 29, 2020 at 09:15 PM

Hi @boyang.liu

I would suggest that you study how to code in Python, here is an example online tutorial.

https://www.w3schools.com/python/


Here is the sample code using StreamingPrices to get EUR= and CHF= then do the calculation on Python code:


ahs.png (72.9 KiB)
Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
boyang.liu · Jul 30, 2020 at 10:58 AM 0
Share

Thanks for your quick reply. Yes I am new to Python, will continue to learn more. Also, my I know where can I get a full documentation on the Eikon Data API for Python? I checked the https://docs-developers.refinitiv.com/1596106605746/14684/book/en/index.html , but the ek.StreamPrices seems not included.

avatar image
REFINITIV
chavalit.jintamalit ♦♦ boyang.liu · Jul 30, 2020 at 01:29 PM 0
Share

Hi @boyang.liu

I modified sample code from https://developers.refinitiv.com/eikon-apis/eikon-data-api/learning?content=81721&type=learning_material_item

Hope this help!

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

streaming_prices.open()

Streaming prices total volume TRDVOL_1

Using Eikon Data API to retrieve real time prices

Defining Color output StreamingPrices

problems with StreamingPrices object's "open()" method

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges