Skip to content

Add mark price subscription for Binance Futures #2548

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

Conversation

bartolootrit
Copy link
Contributor

Pull Request

Binance futures support of Strategy::subscribe_mark_prices and Strategy::on_mark_price.

Type of change

Delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested?

It was tested manually on Binance

Copy link
Member

@cjdsellers cjdsellers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @bartolootrit

I was hoping someone would pick this up, many thanks for the contribution!

@@ -157,3 +158,11 @@ def _handle_mark_price(self, raw: bytes) -> None:
)
generic = CustomData(data_type=data_type, data=data)
self._handle_data(generic)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call leaving this in, so we don't immediately break by changing to the first class MarkPriceUpdate.
I'll make sure to deprecate this one in the release notes for a cycle.

@cjdsellers cjdsellers changed the title Binance futures mark price subscription Add mark price subscription for Binance Futures Apr 22, 2025
@cjdsellers cjdsellers merged commit 8ac8337 into nautechsystems:develop Apr 22, 2025
17 checks passed
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.

2 participants