Skip to content

Update end_time Documentation in ReceivePublicTradesStreamRequest for Consistent Historical Window Definition #123

Description

What's needed?

The documentation for the end_time parameter in the ReceivePublicTradesStreamRequest message has been updated to align with the public order book streaming specification. Previously, the note described the purpose of end_time inconsistently compared to the order stream documentation.

Changes:

  • The updated documentation now explicitly states that end_time must be in the past to define a complete historical window.
  • This ensures that when historical trade data is requested, no future (incomplete) trade data is included in the stream.
  • This update mirrors the documentation in the public order book stream, providing consistency across our streaming endpoints.

Proposed solution

This change should improve clarity for developers by aligning the end_time semantics across both public trades and order book streams, ensuring that clients understand that end_time is intended solely for historical replay purposes and must always be set to a timestamp in the past.

@@ message ReceivePublicTradesStreamRequest {
-  // Optional; if set, stops streaming trade updates after this timestamp.
-  // NOTE: end_time must be in the past to ensure that the
-  // historical window is complete and that no future (incomplete) trade data is expected.
-  google.protobuf.Timestamp end_time = 3;
+  // Optional; if set, stops streaming trade updates after this timestamp.
+  // The end_time must be in the past to define a complete historical window,
+  // ensuring that no future (incomplete) trade data is included in the stream.
+  google.protobuf.Timestamp end_time = 3;
 }

Use cases

No response

Alternatives and workarounds

No response

Additional context

No response

Metadata

Metadata

Labels

part:docsAffects the documentationtype:enhancementNew feature or enhancement visitble to users

Fields

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions