Repository navigation
fix(ws): use Binance USD-M /market stream path for swap feeds - #421
Closed
buildwithpnj wants to merge 1 commit into
Closed
buildwithpnj wants to merge 1 commit into
buildwithpnj wants to merge 1 commit into
Conversation
Signed-off-by: Prakash Jha <[email protected]>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Updates
PublicMarketPriceFeed._urlfor Binance USD-M futures (swap) streams from the retired root pathwss://fstream.binance.com/stream?streams=...towss://fstream.binance.com/market/stream?streams=...so@markPrice@1sswap feeds receive live ticks instead of falling back to REST polling.Related issue
Changes
hostinbackend_api_python/app/services/market_price_stream.py(_url) to"wss://fstream.binance.com/market"whenswapis true (keeping spot onwss://stream.binance.com:9443).test_binance_public_price_feed_uses_market_prefix_for_swapinbackend_api_python/tests/test_market_price_stream.py.Test plan
pytest --noconftest tests/test_market_price_stream.py tests/test_execution_stream_adapters.py -q—44 passed in 0.42s;ruff check --select F,E9passed)Signed-off-by) for DCO