Skip to content

MinuteSnapshot missing 't' (timestamp), 'n' (transactions) #440

Description

@tlk3

Python library dataclass missing fields returned by the API.

Updated version with newly added lines commented: # added

`
class MinuteSnapshot:
"Most recent minute bar."
accumulated_volume: Optional[float] = None
open: Optional[float] = None
high: Optional[float] = None
low: Optional[float] = None
close: Optional[float] = None
volume: Optional[float] = None
vwap: Optional[float] = None
otc: Optional[bool] = None
timestamp: Optional[int] = None # added
transactions: Optional[int] = None # added

@staticmethod
def from_dict(d):
    return MinuteSnapshot(
        d.get("av", None),
        d.get("o", None),
        d.get("h", None),
        d.get("l", None),
        d.get("c", None),
        d.get("v", None),
        d.get("vw", None),
        d.get("otc", None),
        d.get("t", None),        # added
        d.get("n", None),       # added
    )

`

Activity

  1. added
    bugSomething isn't working
    on May 9, 2023
  2. justinpolygon commented on May 10, 2023

    @justinpolygon
    Collaborator

    Thanks for submitting this @tlk3. I'm checking this out now.

  3. justinpolygon commented on May 20, 2023

    @justinpolygon
    Collaborator

    Hey, v1.9 has the fix for this. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions