这是indexloc提供的服务,不要输入任何密码
Skip to content

Backtesting - Getting KeyError procesed data #257

@rapcmia

Description

@rapcmia

Describe the bug

When checking github issues, found this behavior where the response from hummingbot-api's backtesting resulted to 200 OK but error on dashboard

Image
KeyError: 'processed_data'

Traceback:
File "/home/dashboard/main.py", line 17, in <module>
    main()
File "/home/dashboard/main.py", line 13, in main
    pg.run()
File "/opt/conda/envs/dashboard/lib/python3.12/site-packages/streamlit/navigation/page.py", line 300, in run
    exec(code, module.__dict__)  # noqa: S102
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dashboard/frontend/pages/config/pmm_simple/app.py", line 30, in <module>
    bt_results = backtesting_section(inputs, backend_api_client)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dashboard/frontend/components/backtesting.py", line 38, in backtesting_section
    if len(backtesting_results["processed_data"]) == 0:
           ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^

Steps to reproduce bug

  1. Setup humminbot/deploy using ./setup.sh
  2. Select PMM_simple and run backtest on hyperliquid HYPE-USDT or mexc MX-USDT
  3. Observed hummingbot-api logs and dashboard page

Metadata

Metadata

Assignees

No one assigned

    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