akapur / pyiqfeed

Python LIbrary for reading DTN's IQFeed
GNU General Public License v2.0
172 stars 109 forks source link

Getting historical trade data for current day. #29

Closed bryaan closed 6 years ago

bryaan commented 6 years ago

I am calling the historical trade data request method with the current day as the start and end date. But iqfeed says it has no data. It works fine for previous days. Is there some trick here?

   with iq.ConnConnector([history_conn]) as connector:
      data = history_conn.request_ticks_in_period(ticker, startDate, endDate, ascend=True, timeout=60)
akapur commented 6 years ago

I would ask DTN about that since it works for prior days.

On Mon, Jun 4, 2018 at 2:53 PM, Bryan Alexander Rivera < notifications@github.com> wrote:

I am calling the historical trade data request method with the current day as the start and end date. But iqfeed says it has no data. It works fine for previous days. Is there some trick here?

with iq.ConnConnector([history_conn]) as connector: data = history_conn.request_ticks_in_period(ticker, startDate, endDate, ascend=True, timeout=60)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/akapur/pyiqfeed/issues/29, or mute the thread https://github.com/notifications/unsubscribe-auth/AAyQVB9pbnWEnL00At7bTehnvp4bTcupks5t5YIYgaJpZM4UZmXa .