Skip to content

qsh_parser.to_ohlcv: add VWAP column #10

Description

@oomkapwn

Originally tracked as an inline TODO at qsh_parser.py:273.

Current state: to_ohlcv produces open/high/low/close/volume/buy_volume/sell_volume/oi/trades columns.

Add: VWAP column = sum(price * volume) / sum(volume) per bucket.

Acceptance criteria:

  • New 'vwap' column in to_ohlcv output, computed from deals.
  • NaN-safe (empty bucket → NaN, not 0).
  • Add a unit test with a small synthetic deals stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions