-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Added Vanilla Options Support #764
Added Vanilla Options Support #764
Conversation
… from Binance documentation
…as no activity on the testnet...
Resolves #722 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a need for a new OptionsDepthCacheManager class, it seems to be a simpler version of the superclass without re-using functionality.
Managing the depth cache works differently with the options API as on connection to the websocket they send the initial order book thus there is no poll to the depth REST endpoint. Unfortunately that meant I had to change quite a few of the main functions of the manager class however it still uses 3 of the functions of the superclass (get_depth_cache, close and get_symbol). |
This is great, I was planning on doing this (#722), but my primary work occupied me for the past few weeks, leaving no time for open source activity. Can we hope for a PR merge soon? I'd like to test and use these new functions. Thanks @Ollie-Hooper for the effort. |
I created a base class using the simpler version of the DepthCache and have merge into master. |
Implements support for Binance's new vanilla options product. Their API documentation can be found here.
This PR adds all the current REST endpoints, websockets for vanilla options and an OptionsDepthCacheManager. It also adds vanilla options testnet support in both REST and websockets however I have been unable to fully verify the websocket implementation as there has been no activity on the testnet platform. It does make a successful connection however so probably would work.