For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

Python API: I try to use get_data fuction to retrieve data,but this time there are some errors when I run my python script

I run this script as usual, but procedure runs error .While I use CodeBook to run this script,I get the right result .
df, err = ek.get_data(
instruments = ['1YMM1'],
fields = [
'TR.CLOSEPRICE',
'TR.ACCUMULATEDVOLUME',
'TR.BLOCKTRADEVOLUME',
'TR.UPPERTRADINGLIMIT',
'TR.LOWERTRADINGLIMIT',
'TR.HIGHPRICE',
'TR.LOWPRICE',
'TR.OPENPRICE',
'TR.TURNOVER',
'TR.SETTLEMENTPRICE',
'TR.OPENINTEREST',
'TR.OPENINTEREST.date'
],
parameters={'Frq': 'D', 'SDate': '2021-03-29', 'EDate': '2021-04-01'}
)


eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

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

Upvotes
Accepted
38.1k 71 35 53

@caoruanmin

The code can be run properly in my environment.

Please share the error message so we can verify the problem.


1618814503993.png (54.5 KiB)
icon clock
10 |1500

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

Upvotes
39.2k 75 11 27

@caoruanmin

I'm afraid it's practically impossible to comment on the issue you experienced without any details of the error. Would you care to describe the symptoms of the issue in detail?

icon clock
10 |1500

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

Click below to post an Idea Post Idea