{"id":16897652,"url":"https://github.com/flouthoc/aku","last_synced_at":"2025-03-22T09:31:52.474Z","repository":{"id":42921849,"uuid":"275436036","full_name":"flouthoc/aku","owner":"flouthoc","description":"Aku - Tiny Backtesting/Trading Engine","archived":false,"fork":false,"pushed_at":"2022-03-26T07:07:02.000Z","size":2858,"stargazers_count":40,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T10:21:20.155Z","etag":null,"topics":["backtesting","backtesting-trading-strategies","trading","trading-bot","trading-simulator"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flouthoc.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-27T19:01:31.000Z","updated_at":"2024-12-16T05:21:12.000Z","dependencies_parsed_at":"2022-09-07T05:13:18.242Z","dependency_job_id":null,"html_url":"https://github.com/flouthoc/aku","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flouthoc%2Faku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flouthoc%2Faku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flouthoc%2Faku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flouthoc%2Faku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flouthoc","download_url":"https://codeload.github.com/flouthoc/aku/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937751,"owners_count":20535124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backtesting","backtesting-trading-strategies","trading","trading-bot","trading-simulator"],"created_at":"2024-10-13T17:38:57.747Z","updated_at":"2025-03-22T09:31:52.149Z","avatar_url":"https://github.com/flouthoc.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![aku](https://github.com/flouthoc/aku/blob/master/assets/aku.png)\n# Aku - Toy Backtesting/Trading Engine\nAku is a toy backtesting/trading engine with some very basic interfaces. Its easy to extend aku by providing custom implementation of interfaces.\n```bash\nUsage:\n  Aku v0.0.1 [OPTION...]\n\n  -i, --input arg   Input csv file, will read ticks from here\n  -o, --output arg  Output csv file, will output trade / results here\n                    (default: output.csv)\n  -d, --debug       Enable debugging\n  -h, --help        Print usage\n ```\n\n### Build \n```base\nmake\n```\n\n### Key Terms\n    - Tick: A standard stock candle.\n    - TickManager: Responsible for Fetching Ticks from any source e.g Web/Database\n    - TradeManager: Implements Basic operations for your trading exchange/portal.\n    - Strategy: Implements processTick()\n    \n### Your standard Implementation or refer main.cpp.\n```cpp\n\t/* Initialise tick manager*/\n   \tTickManager * tick_manager;\n   \ttick_manager = new YourTickManager(input_file);\n\n   \t/* Initialise strategy */\n   \tStrategy * strategy;\n   \tstrategy = new YourCustomStrategy();\n\n   \t/* Initialise trade manager */\n   \tTradeManager * trade_manager;\n   \ttrade_manager = new YourTradeManager(virtual_bank);\n   \tTick last_traded_tick;\n   \t\n   \t/* Start the core event-loop */\n   \twhile(tick_manager-\u003ehasNextTick()){\n   \t\tTick t = tick_manager-\u003egetNextTick();\n   \t\tlast_traded_tick = t;\n   \t\tTrade tr = strategy-\u003eprocessTick(t);\n   \t\ttrade_manager-\u003eperformTrade(tr);\n   \t}\n```\n\n### Todos\n\n - Write MORE Tests\n - Clean the code ( as always)\n - Implement more strats\n\n### License\n - MIT License\n - Logo by https://www.deviantart.com/foxboy2015\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflouthoc%2Faku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflouthoc%2Faku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflouthoc%2Faku/lists"}