accessed MarketByPrice (6501.T) data via EWA/Python. How can I read these "Key" value? isn't it a pair of side&price?
For a deeper look into our Elektron API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
accessed MarketByPrice (6501.T) data via EWA/Python. How can I read these "Key" value? isn't it a pair of side&price?
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
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
Hi @kazuhisa.matsuda,
The key type of a MarketByPrice Map is a Buffer, which is Base64-encoded. Python can decode these values:
>>> 'OTE0MDAwMEE='.decode('base64') '9140000A'
Thank you for the response. so for Python3, it should be following?
>>>base64.b64decode('OTE0MDAwMEE=')
b'9140000A'