Skip to content

YahooFinanceProcessor.scrap_data sorts by a missing tick column #1436

Description

@mameikagou

Bug

YahooFinanceProcessor.scrap_data() raises KeyError: "tick" after successfully combining downloaded frames.

Reproduction

Stub fetch_stock_data() to return frames containing the columns produced by the implementation, including day and tic, then call scrap_data() for two symbols. The final sort_values() call fails because it requests tick.

Cause

fetch_stock_data() creates a tic column, while scrap_data() sorts by ["day", "tick"].

Expected behavior

The combined frame should sort by day and tic and return normally.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions