akapur / pyiqfeed

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

Error when running the examples in example.py #56

Open AlsaAnz opened 2 years ago

AlsaAnz commented 2 years ago

Hello, thanks for your work on this library. I have followed all the steps specified in the readme and I was able to successfully get the news data using the -n flag, I am however not able to retrieve any other data with any of the other flags, when I tried that I got this error : _No data returned because Request: HTX,SPY,100,0,H0000000000,100 , Error: Unauthorized user ID.

This error to me suggests that my authorization failed but I highly doubt that because when I ran the example with fake credentials, the result was different from when I ran it with the real credentials, in which case the iqfeed window opens up pre-filled and what seems to be authentication takes place.

Can you please share your thoughts on the above error.

Thanks.

akapur commented 2 years ago

Sounds like a permissions problem. I would speak to DTN.

On Fri, Jan 14, 2022 at 3:12 AM AlsaAnz @.***> wrote:

Hello, thanks for your work on this library. I have followed all the steps specified in the readme and I was able to successfully get the news data using the -n flag, I am however not able to retrieve any other data with any of the other flags, when I tried that I got this error : No data returned because Request: HTX,SPY,100,0,H_0000000000,100 , Error: Unauthorized user ID.

This error to me suggests that my authorization failed but I highly doubt that because when I ran the example with fake credentials, the result was different from when I ran it with the real credentials, in which case the iqfeed window opens up pre-filled and what seems to be authentication takes place.

Can you please share your thoughts on the above error.

Thanks.

— Reply to this email directly, view it on GitHub https://github.com/akapur/pyiqfeed/issues/56, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGJAVCKRLIT2GR3QK6NGQTUV7LIRANCNFSM5L6DTJVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

AlsaAnz commented 2 years ago

You're right, after speaking with them I was able to solve this problem. Fantastic library by the way, my main challenge now is with getting the live data, specifically the level 1 streaming data using get_level_1_quotes_and_trades() and the live bar interval data using get_live_interval_bars(). I know that these functions call the watch() method and unlike the HistoryConn class don't directly return any data. I would like to know how I can return the data from the live API's to my application. Thanks.

akapur commented 2 years ago

Read the source, Luke. You have examples.

On Fri, Jan 21, 2022 at 6:34 AM AlsaAnz @.***> wrote:

You're right, after speaking with them I was able to solve this problem. Fantastic library by the way, my main challenge now is with getting the live data, specifically the level 1 streaming data using get_level_1_quotes_and_trades() and the live bar interval data using get_live_interval_bars(). I know that these functions call the watch() method and unlike the HistoryConn class don't directly return any data. I would like to know how I can return the data from the live API's to my application. Thanks.

— Reply to this email directly, view it on GitHub https://github.com/akapur/pyiqfeed/issues/56#issuecomment-1018427591, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGJAVGVG2BRSVMSF6MYG4LUXFAFJANCNFSM5L6DTJVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>