Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing in "market_data" #40

Open
prozor7 opened this issue Aug 30, 2023 · 1 comment
Open

missing in "market_data" #40

prozor7 opened this issue Aug 30, 2023 · 1 comment

Comments

@prozor7
Copy link

prozor7 commented Aug 30, 2023

I believe that the "High" and "Low" price information is the most important piece of information in daily market data (current-day).

Only "Bid" and "Ask" are available as information "on_tick" at the moment.
We should have a function called "on_tick_daily", is what I propose. Open, High, Low, and Bid

Please point me in the right direction if I'm missing how to access those four bits of data using the on_tick method.

regards

@elvinex
Copy link
Collaborator

elvinex commented Feb 14, 2024

Hi,
Sorry for the late reply.
Open/High/Low/Close is only available using bars, not ticks. Ticks are defined as only bid/ask.
You could subscribe to bar data like this:

self.dwx.subscribe_symbols_bar_data([['EURUSD', 'D1'], ['GBPUSD', 'D1']])

Then the on_bar_data() function should trigger when there is a new bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants