{"id":20519729,"url":"https://github.com/edo1z/bot-system","last_synced_at":"2025-10-24T12:37:13.189Z","repository":{"id":129667405,"uuid":"449029912","full_name":"edo1z/bot-system","owner":"edo1z","description":"Cryptocurrency FX Bot System","archived":false,"fork":false,"pushed_at":"2024-11-12T05:58:57.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T00:17:29.310Z","etag":null,"topics":["bot","bot-framework","cryptocurrency","fx"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/edo1z.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-17T19:53:08.000Z","updated_at":"2024-11-12T05:59:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"674d9399-0e90-427d-81b6-d9a8c13227ed","html_url":"https://github.com/edo1z/bot-system","commit_stats":null,"previous_names":["net3i/bot-system","edo1z/bot-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edo1z/bot-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edo1z%2Fbot-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edo1z%2Fbot-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edo1z%2Fbot-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edo1z%2Fbot-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edo1z","download_url":"https://codeload.github.com/edo1z/bot-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edo1z%2Fbot-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272833299,"owners_count":25000870,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bot","bot-framework","cryptocurrency","fx"],"created_at":"2024-11-15T22:15:51.808Z","updated_at":"2025-10-24T12:37:13.087Z","avatar_url":"https://github.com/edo1z.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Bot System\n\n![screen](./screen.png)\n\n### Install\n\n```shell\n\u003e git clone  https://github.com/web3ten0/bot-system\n\u003e cd bot-system\n\u003e npm install\n```\n\n### Setting\n\n- `.env`ファイルを作成し、下記を記入します。\n\n```.env\nBOT_NAME=bf-bot\nBF_API_KEY=*****\nBF_SECRET=*****\n```\n\n### Strategyの作成\n\n- `strategies/bf/Strategy1.js`にサンプルのストラテジーがあります。\n- 上記を修正して、ストラテジーを作成します。\n- 実行したいストラテジーを`strategies.js`に登録します。\n  - `strategies.js`は、リポジトリのルートにあります。\n- 下記の`strategies.js`の例は3つのストラテジーを並行して実行します。\n\n```strategies.js\nconst Strategy = require('./strategies/bf/Strategy1')\n\nconst strategies = [\n  new Strategy({\n    minSpread: 1500,\n  }),\n  new Strategy({\n    minSpread: 2000,\n  }),\n  new Strategy({\n    minSpread: 750,\n  }),\n]\n\nmodule.exports = strategies\n```\n\n### 実行\n\n- 通常モードでの実行\n  - 上記のような各種プライス情報やトレード結果の数値・グラフが表示されます。\n  - 下記の場合、テストモードでの実行されます。\n  - 終了するには、 `Ctrl+c` で取引終了し、 `Ctrl+x` で画面が閉じます。\n\n```shell\n\u003e node index.js bot\n```\n\n- CLIモード\n\n```shell\n\u003e node index.js bot-cli\n```\n\n- 本番モードでの実行\n\n```shell\n\u003e node index.js bot pro\n\u003e node index.js bot-cli pro\n```\n\n- バックテスト用データ蓄積モード\n\n```shell\n\u003e node index.js data\n```\n\n- バックテスト\n\n```shell\n\u003e node index.js test 2022-01-18 0:00 3:00\n\u003e node index.js test latest\n\u003e node index.js test-graph 2022-01-18 0:00 3:00\n\u003e node index.js test-graph latest\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedo1z%2Fbot-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedo1z%2Fbot-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedo1z%2Fbot-system/lists"}