Files
sanguo_vnpy/graphify-out/cache/ast/fec4f205a02727c7d62c62e75e0a3e7f8b7caed266721dcaeaa01f6ceba1ea01.json
T
2026-05-06 23:12:48 +08:00

1 line
20 KiB
JSON

{"nodes": [{"id": "users_chufeng_openclaw_sanguo_projects_sanguo_vnpy_archive_2026_04_29_cleanup_test_backtest_test_local_backtest_py", "label": "test_local_backtest.py", "file_type": "code", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L1"}, {"id": "backtest_test_local_backtest_test_run_strategy_backtest", "label": "test_run_strategy_backtest()", "file_type": "code", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L61"}, {"id": "backtest_test_local_backtest_rationale_62", "label": "\u76f4\u63a5\u6d4b\u8bd5run_strategy_backtest", "file_type": "rationale", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L62"}], "edges": [{"source": "users_chufeng_openclaw_sanguo_projects_sanguo_vnpy_archive_2026_04_29_cleanup_test_backtest_test_local_backtest_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L14", "weight": 1.0}, {"source": "users_chufeng_openclaw_sanguo_projects_sanguo_vnpy_archive_2026_04_29_cleanup_test_backtest_test_local_backtest_py", "target": "types", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L20", "weight": 1.0}, {"source": "users_chufeng_openclaw_sanguo_projects_sanguo_vnpy_archive_2026_04_29_cleanup_test_backtest_test_local_backtest_py", "target": "vnpy_ctastrategy", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L40", "weight": 1.0}, {"source": "users_chufeng_openclaw_sanguo_projects_sanguo_vnpy_archive_2026_04_29_cleanup_test_backtest_test_local_backtest_py", "target": "vnpy_ctabacktester", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L46", "weight": 1.0}, {"source": "users_chufeng_openclaw_sanguo_projects_sanguo_vnpy_archive_2026_04_29_cleanup_test_backtest_test_local_backtest_py", "target": "vnpy_event", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L57", "weight": 1.0}, {"source": "users_chufeng_openclaw_sanguo_projects_sanguo_vnpy_archive_2026_04_29_cleanup_test_backtest_test_local_backtest_py", "target": "vnpy_trader_engine", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L58", "weight": 1.0}, {"source": "users_chufeng_openclaw_sanguo_projects_sanguo_vnpy_archive_2026_04_29_cleanup_test_backtest_test_local_backtest_py", "target": "traceback", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L59", "weight": 1.0}, {"source": "users_chufeng_openclaw_sanguo_projects_sanguo_vnpy_archive_2026_04_29_cleanup_test_backtest_test_local_backtest_py", "target": "backtest_test_local_backtest_test_run_strategy_backtest", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L61", "weight": 1.0}, {"source": "backtest_test_local_backtest_rationale_62", "target": "backtest_test_local_backtest_test_run_strategy_backtest", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L62", "weight": 1.0}], "raw_calls": [{"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L64"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "exec", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L68"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "globals", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L68"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "items", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L72"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "isinstance", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L73"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "issubclass", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L73"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L83"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L88"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "EventEngine", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L90"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L91"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "MainEngine", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L93"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L94"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L97"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L98"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "type", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L98"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "isinstance", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L98"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "add_app", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L99"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L100"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L102"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "get_app", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L103"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L104"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "type", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L104"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "isinstance", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L104"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "isinstance", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L107"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L108"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "BacktesterEngine", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L109"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L110"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "type", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L110"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L112"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "init_engine", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L113"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L114"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "str", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L120"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "len", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L121"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "str", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L123"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "len", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L124"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "get", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L132"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "get", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L133"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "get", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L134"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "get", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L135"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "get", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L136"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L139"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L144"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "run_backtesting", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L148"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L153"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "get_result_statistics", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L156"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L157"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "list", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L157"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "keys", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L157"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "get_daily_df", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L160"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "hasattr", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L161"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "to_dict", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L162"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "get_all_trades", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L167"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "str", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L178"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "format_exc", "is_member_call": true, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L179"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L181"}, {"caller_nid": "backtest_test_local_backtest_test_run_strategy_backtest", "callee": "print", "is_member_call": false, "source_file": "/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/test_local_backtest.py", "source_location": "L182"}]}