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

[binance] add order book orders timestamp #4732

Closed

Conversation

rizer1980
Copy link
Contributor

fix limitorder null timestamp

List<LimitOrder> bids =
ob.bids.entrySet().stream()
.map(e -> new LimitOrder(OrderType.BID, e.getValue(), pair, null, null, e.getKey()))
.map(e -> new LimitOrder(OrderType.BID, e.getValue(), pair, null, timeStamp, e.getKey()))
Copy link
Collaborator

Choose a reason for hiding this comment

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

this conflicts with this fields documentation:

a Date object representing the order's timestamp according to the exchange's server, null if not provided

@timmolter
Copy link
Member

If no timestamp from server, we set it to null.

@timmolter timmolter closed this Nov 13, 2023
@rizer1980 rizer1980 deleted the binance_addOrderBookOrdersTimestamp branch May 11, 2024 11:24
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.

3 participants