akapur / pyiqfeed

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

Equity Option Chains only return OPRA OSI codes (and) Getting the News? #3

Closed erickmiller closed 7 years ago

erickmiller commented 7 years ago

Glad the fixes worked out.

Could you kindly give any quick tips on using the library to:

1) Get full Equity Option Chains (Symbol, Strike, Last, Change, Bid, Ask, Volume, and Open Interest)? Currently the example for equity option chains only returns OPRA OSI codes...

2) Get real-time news feed?

If this functionality isn't currently supported by the API please let me know - and if you can give me any quick pointers on where best to implement these features I will probably code this up and send another pull request because I need these features for what I'm working on.

Thanks in advance

akapur commented 7 years ago

1) For equity option chains the way the IQFeed API works and the pyiqfeed package works is that when you request the chain you get symbols and then you have to get the data for those symbols yourself. So you can request a snapshot or request live market data for each of those symbols.

2) I haven’t implemented news. I would subclass the FeedConn class to create a new NewsConn class to get it. Look at the implementations of any of the other ???Conn Classes.

From: Erick [mailto:notifications@github.com] Sent: Tuesday, August 30, 2016 12:35 AM To: akapur/pyiqfeed pyiqfeed@noreply.github.com Subject: [akapur/pyiqfeed] Equity Option Chains only return OPRA OSI codes (and) Getting the News? (#3)

Glad the fixes worked out.

Could you kindly give any quick tips on using the library to:

1) Get full Equity Option Chains (Symbol, Strike, Last, Change, Bid, Ask, Volume, and Open Interest). Currently the example for equity option chains only returns OPRA OSI codes ?

2) Get real-time news feed?

If this functionality isn't currently supported by the API please let me know - and if you can give me a quick pointers on where best to implement these features I might code this up and send another pull request because I need these features for what I'm working on.

Thanks in advance

— 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/3 , or mute the thread https://github.com/notifications/unsubscribe-auth/AAyQVBOvoLCfGCrtojUNRE3tCrQ7_L4yks5qk7L8gaJpZM4JwIyV . https://github.com/notifications/beacon/AAyQVIqIEL6prhaPSo06pIfab0U4mtKAks5qk7L8gaJpZM4JwIyV.gif

erickmiller commented 7 years ago

Cool thanks for the pointers. I finally had some block of time the last few days so I implemented this stuff and more! Have been testing the code all day. Just sent you pull request:

https://github.com/akapur/pyiqfeed/pull/5