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

[Bug]: Date precision #250

Open
2 tasks done
germanamz opened this issue Nov 8, 2023 · 0 comments
Open
2 tasks done

[Bug]: Date precision #250

germanamz opened this issue Nov 8, 2023 · 0 comments

Comments

@germanamz
Copy link

germanamz commented Nov 8, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The implementation of the data stream casts timestamps with nanosecond precision to javascript Date object which has millisecond precision, this causes data loss.

Expected Behavior

Have the original datetime string with nanosecond precision.

SDK Version I encountered this issue in

alpaca-trade-api version: 3.0.1

Steps To Reproduce

1. Subscribe to any symbol using the data stream listener.
2. Get any trade event

Filled out the Steps to Reproduce section?

  • I have entered valid steps to reproduce my issue or have attached a minimally reproducible case in code that shows my issue happening; and understand that without this my issue will be flagged as invalid and closed after 30 days.

Anything else?

No response

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

No branches or pull requests

1 participant