https://github.com/morucci/torosuke
https://github.com/morucci/torosuke
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morucci/torosuke
- Owner: morucci
- License: mit
- Created: 2021-08-05T08:25:11.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-21T21:32:57.000Z (over 4 years ago)
- Last Synced: 2025-02-10T05:41:46.480Z (over 1 year ago)
- Language: Haskell
- Size: 99.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# torosuke
Torosuke is my Rabbit but also a Candle crawler for Binance.
Torosuke retreives historical data for a given pair and computes a MACD analysis.
There are three running modes:
- Live runner: Constantly fetch last candles and perform the analysis.
- Histo runner: Retreive historical candles for a given pair.
- Histo analyst: run historical analysis on historical candles.
Torosuke stores fetched data and analysis in the `$cwd/store` directory.
## Live runner
```ShellSession
$ cabal run torosuke-live-crawler -- --pair ADAUSDT --interval 1h
```
## Histo runner
```ShellSession
$ 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'
```
## Histo analyst
```ShellSession
$ cabal run torosuke-histo-analyst -- --pair ADAUSDT --interval 1h
```
## Store
```ShellSession
[user@c6d4bf1ab000 torosuke]$ find store/
store/
store/ADAUSDT
store/ADAUSDT/1h_analysis.json
store/ADAUSDT/1h_current.json
store/ADAUSDT/1h.json
```
For a given pair three files are created in the store:
- 1h.json is the list of candles retrieved.
- 1h_current.json is the current (live) candle.
- 1h_analysis.json contains the MACD analysis for the last 100 candles.