Upgrade from Eikon -> Workspace. Learn about programming differences.

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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
icon clock
10 |1500

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

@caoruanmin

Hi,

Please let us know if you have any updates on this question.

If it is still an issue, please post again to offer further insight into your question.

Regards,

AHS

@caoruanmin

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS

Upvotes
Accepted
79.2k 251 52 74

@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 512.0 KiB each and 1.0 MiB total.

Upvotes
39.4k 77 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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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