Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Binance][Streaming] access to the raw OrderBookUpdate stream (i.e. binance depthUpdate) #4049

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

kpe
Copy link

@kpe kpe commented May 3, 2021

Hi,
I would like to store locally to a file some raw stream data from binance like depthUpdate and aggTrade. While the BinanceStreamingMarketDataService provides a getRawTrades() there is no getRawOrderBookUpdates().

I have prepared a patch, but as I'm new to the project, I hope someone can take a look.

…he binance raw OrderBookUpdates stream (i.e. depthUpdates)
@kpe kpe changed the title patch for #4048 - added getRawOrderBookUpdates() for accessing the bi… [Binance][Streaming] access to the raw OrderBookUpdate stream (i.e. binance depthUpdate) May 3, 2021
…e binance raw OrderBookUpdates stream (i.e. depthUpdates)
col.put(price, qty);
};

TreeMap<BigDecimal, BigDecimal> bids = new TreeMap<>((k1, k2) -> -k1.compareTo(k2));
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe there is a reverseOrder or built-in for this comparator you can use

@walec51
Copy link
Collaborator

walec51 commented Jul 30, 2023

any progress on this PR?

if not I will have to close it

@rizer1980
Copy link
Contributor

hi.
I think it is alredy implemented in BinanceStreamingMarketDataService, public getOrderBookUpdates method

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants