{"id":18029381,"url":"https://github.com/morucci/torosuke","last_synced_at":"2025-08-21T06:34:18.144Z","repository":{"id":142717278,"uuid":"392963874","full_name":"morucci/torosuke","owner":"morucci","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-21T21:32:57.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-10T05:41:46.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/morucci.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":"2021-08-05T08:25:11.000Z","updated_at":"2021-12-21T21:33:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"94d8d837-13af-4b48-ad9a-1e3d33f38234","html_url":"https://github.com/morucci/torosuke","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/morucci%2Ftorosuke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morucci%2Ftorosuke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morucci%2Ftorosuke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morucci%2Ftorosuke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morucci","download_url":"https://codeload.github.com/morucci/torosuke/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249547,"owners_count":20908212,"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":[],"created_at":"2024-10-30T09:08:59.809Z","updated_at":"2025-04-04T21:12:40.498Z","avatar_url":"https://github.com/morucci.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# torosuke\n\nTorosuke is my Rabbit but also a Candle crawler for Binance.\n\nTorosuke retreives historical data for a given pair and computes a MACD analysis.\n\nThere are three running modes:\n\n- Live runner: Constantly fetch last candles and perform the analysis.\n- Histo runner: Retreive historical candles for a given pair.\n- Histo analyst: run historical analysis on historical candles.\n\nTorosuke stores fetched data and analysis in the `$cwd/store` directory.\n\n## Live runner\n\n```ShellSession\n$ cabal run torosuke-live-crawler -- --pair ADAUSDT --interval 1h\n```\n\n## Histo runner\n\n```ShellSession\n$ cabal run torosuke-histo-crawler -- --pair ADAUSDT --interval 1h --start '2020-01-01 00:00:00 Z' --end '2019-01-01 00:00:00 Z'\n```\n\n## Histo analyst\n\n```ShellSession\n$ cabal run torosuke-histo-analyst -- --pair ADAUSDT --interval 1h\n```\n\n## Store\n\n```ShellSession\n[user@c6d4bf1ab000 torosuke]$ find store/\nstore/\nstore/ADAUSDT\nstore/ADAUSDT/1h_analysis.json\nstore/ADAUSDT/1h_current.json\nstore/ADAUSDT/1h.json\n```\n\nFor a given pair three files are created in the store:\n\n- 1h.json is the list of candles retrieved.\n- 1h_current.json is the current (live) candle.\n- 1h_analysis.json contains the MACD analysis for the last 100 candles.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorucci%2Ftorosuke","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorucci%2Ftorosuke","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorucci%2Ftorosuke/lists"}