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

Added Vanilla Options Support #764

Conversation

Ollie-Hooper
Copy link
Contributor

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.

@guillemap
Copy link
Contributor

Resolves #722

Copy link
Owner

@sammchardy sammchardy left a 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.

@Ollie-Hooper
Copy link
Contributor Author

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).

@faileon
Copy link

faileon commented Apr 17, 2021

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.

@sammchardy sammchardy changed the base branch from master to feature/vanilla_options April 20, 2021 06:53
@sammchardy sammchardy merged commit 131a641 into sammchardy:feature/vanilla_options Apr 20, 2021
@sammchardy
Copy link
Owner

I created a base class using the simpler version of the DepthCache and have merge into master.

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

Successfully merging this pull request may close these issues.

4 participants