Open source projects
reckless-trading-botBitfinex bot for automated trading (reckless)bitfinex-clientBitfinex client API library for Haskell
Configure Bitfinex user data:
vi ~/.profile
export BITFINEX_API_KEY="SECRET"
export BITFINEX_PRV_KEY="SECRET"Requirements:
- Running Docker/Swarm
- On Mac you also need
brew install coreutils wget
Run the following command to spawn reckless-trading-bot using prebuilt binaries from github:
./nix/ds-setup.sh --prebuiltIn case where you don't have initialized docker swarm (for example you never used it), you need to run:
./nix/ds-setup.sh --prebuilt --reset-swarmTo build reckless-trading-bot from source, make sure Docker have access to reasonable amount of resources (at least 8GB of memory, reasonable storage and CPU capacity). Initial compilation will take a lot of time, CPU, memory, bandwidth and storage, but it's needed to be done only once. Run the following command to build reckless-trading-bot from source and run it:
./nix/ds-setup.shYou can review and change reckless-trading-bot settings in ./build/docker-compose.21it.yml file. Also take a look at the various utility shell scripts in the ./nix/*.sh location to manage bot and its data.
Spawn nix-shell:
./nix/shell.shEverything following is supposed to be run from inside of spawned nix-shell. Run IDE:
vi .Run tests:
stack test --fast --file-watch bitfinex-clientRun specific test:
stack test --fast --file-watch --test-arguments="-m platformStatus" bitfinex-clientRun development daemon:
ghcidCreate new release:
git tag v0.1.0
git push --tagsDelete existing release:
git tag -d v0.1.0
git push --delete origin v0.1.0