EIKON DATA API ; how can we setup a proxy and port?

Hi all,
I am trying the tutorial:
data = ek.get_timeseries('AAPL.O', # the RIC for Apple, Inc.
fields='*', # all fields
start_date='2017-01-01', # start date
end_date='2017-12-31') # end date
When requesting data I have got the following errors (I need to download via a proxy because I am requesting from a company):
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">html,body{height:100%;padding:0;margin:0;}.oc{display:table;width:100%;height:100%;}.ic{display:table-cell;vertical-align:middle;height:100%;}div.msg{display:block;border:1px solid #30c;padding:0;width:500px;font-family:helvetica,sans-serif;margin:10px auto;}h1{font-weight:bold;color:#fff;font-size:14px;margin:0;padding:2px;text-align:center;background: #30c;}p{font-size:12px;margin:15px auto;width:75%;font-family:helvetica,sans-serif;text-align:left;}</style><title>403 Forbidden: incorrect proxy service was requested</title></head><body><div class="oc"><div class="ic"><div class="msg"><h1>403 Forbidden: incorrect proxy service was requested</h1><p><p>The webserver reported that an error occurred while trying to access the website. Please click <u><a href="javascript:history.back()">here</a></u> to return to the previous page.</p> <p> URL: http://127.0.0.1:9060/api/v1/data<br /> <br/>User name: <br/>Group name: </p></p></div></div></div></body></html>
2020-12-02 12:10:31,967 P[47248] [MainThread 18444] HTTP request failed: EikonError-Client Error: <!-- IE friendly error message walkround. if error message from server is less than 512 bytes IE v5+ will use its own error message instead of the one returned by server.
Can you help please?
Best Answer
-
You can contact your Refinitiv Account Manager or Refinitiv CSM to get more information on the required proxy/firewall rules.
I reached out to your account manager, Manoj Naran Dullabh, and informed him to contact you regarding this.
Alternatively, you can contact Refinitiv Helpdesk to ask for required network rules at https://my.refinitiv.com/
0
Answers
-
In fact I want to integrate a proxy into my python code . I am not talking about the "Eikon PROXY API".I have tried this piece of code but it is not working:
import httplib2
# detect presense of proxy and use env varibles if they exist
pi = httplib2.proxy_info_from_environment()
if pi:
import socks
socks.setdefaultproxy(pi.proxy_type, pi.proxy_host, pi.proxy_port)
socks.wrapmodule(httplib2)
# now all calls through httplib2 should use the proxy settings
httplib2.Http()
error:
020-12-03 10:25:36,159 P[54288] [MainThread 39244] Error: no proxy address identified. Check if Eikon Desktop or Eikon API Proxy is running. 2020-12-03 10:25:36,160 P[54288] [MainThread 39244] Port number was not identified, cannot send any request
0 -
The Eikon API only makes request to a locally running Eikon / API Proxy application. I believe you should not apply proxy settings to your Python code. Instead, ensure that Eikon is working through the proxy. The Eikon API should then work correctly.
Hope this helps!
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 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.9K Refinitiv Data Platform
- 630 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
- 86 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛