marketflows.plots.charts

Chart rendering.

Generates PNG line charts for selected groups, base assets, EMA periods, and derivative orders.

Functions

plot_charts(*, flow_type, category, df, ...)

Plot all charts for flow type.

marketflows.plots.charts.plot_charts(*, flow_type, category, df, groups, symbols, base_assets, analysis_config, out_dir)

Plot all charts for flow type.

Parameters:
  • flow_type (Literal['narratives', 'market_cap_ranges', 'individual_assets']) – the flow type we want to collect data for

  • category (str) – category of chart used as prefix in title and filename

  • df (DataFrame) – DataFrame with all data we want to use

  • groups (list[str]) – list of group names that we want to plot. If the data for a group is not in df, this group is not plotted.

  • symbols (dict[str, str]) – symbol for each asset/group

  • base_assets (list[str]) – list of base assets

  • analysis_config (AnalysisConfig) – configuration parameters for analysis module

Return type:

None