Overview
Set up recurring buys in Gemini. Given some keys (Create API Keys), allows you to configure a recurring buy using the reduced API maker and taker fees in Gemini.
Core features
- Checks current USD balance
- Cancels any existing/trailing orders
- Submits an order for BTC and ETH at X% of current available balance. Sets limit order at 99% of current price. Given the spread and fees, this is likely to fill and is still cheaper than using a market order.
Setup
I'm using AWS Lambda: https://aws.amazon.com/lambda/. The first 1M request/month are free. Given I plan on having this run once a day and/or week, that's more than enough for our purposes. Also having automatic logging allows use to store the order history, tick amounts, etc for free as well.
Using gemini-layer.zip
for the core logic with the .py
files including the specifics of the purchases. Basic instructions (TBD)
- Upload the layer to AWS Lambda Layers
- Define a function using the rest of the logic
- Run manually or using CloudWatch to schedule a job to run at X interval