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

UpdatedAt time in stream.News API needs standard time format #244

Open
smjure opened this issue Mar 3, 2023 · 1 comment
Open

UpdatedAt time in stream.News API needs standard time format #244

smjure opened this issue Mar 3, 2023 · 1 comment

Comments

@smjure
Copy link

smjure commented Mar 3, 2023

When streaming news, the time is in an arbitrary format, e.g.

"CreatedAt":"2023-01-30T13:01:31+01:00","UpdatedAt":"2023-01-30T13:01:32+01:00"

which cannot be simply unmarshaled into stream.News struct, where CreatedAt and UpdatedAt are time.Time structs. Could the time be standardized, so it's consistent with alpaca API? I think time.Time uses RFC 3339 format.

@gnvk
Copy link
Collaborator

gnvk commented Sep 1, 2023

I don't fully understand your issue:

  1. Your examples are in fact in RFC 3339 format.
  2. It isn't clear how you got those examples.

Can you please provide minimal reproducible example of your issue?

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

2 participants