Files
krakenbot/README.md
Dennis Reimann 7fb83e187a 🎉 Get the party started
2020-04-29 08:21:17 +02:00

1.8 KiB
Raw Blame History

Stacking Sats on Kraken

First off: Here's to you, Bittr you will be missed! 😢

This script is not a full replacement for the incredible service Bittr offered, but it's a start: Automate your Stacking Sats process by regularly placing buy orders using the Kraken API.

Caveat

You need to install the dependency kraken-api, which is a third-party package. It has a minimal set of dependencies and I've done my best to audit its code. Also the version is fixed, so that unwanted changes do not slip in.

However: Use this at your own risk and decide for yourself whether or not you want to run this script and its dependencies!

📦 Setup

Prerequisite: At least the current LTS version of Node.js.

Install the dependencies:

npm install

Setup the environment variables for the script:

export KRAKEN_API_KEY="apiKeyFromTheKrakenSettings"
export KRAKEN_API_SECRET="privateKeyFromTheKrakenSettings"
export KRAKEN_API_FIAT="USD" # the governmental shitcoin you are selling
export KRAKEN_BUY_AMOUNT=21 # fiat amount you trade for the future of money

Use a dry run to test the script and see the output without placing an order:

npm test

You should see something like this sample output:

💰 Balance: 210000.00 USD / 21.0 XBT

📈 Ask: 21000.2 USD
📉 Bid: 21000.1 USD

🧾 Order: 0.21212121 XBT at 21000.1 USD

💸 Placed order: buy 0.21212121 XBTUSD @ limit 21000.1 / TXID: 2121212121

🤑 Stack sats

When you are good to go, execute this command in a regular interval:

npm run stack-sats

Now go wild and triggeer it via a weekly or even daily cron job.

Stay humble! 🙏