AutoBitStack
AutoBitStack is a cryptocurrency investment platform that allows users to invest in Bitcoin using Dollar-Cost Averaging (DCA) and limit orders. We leverage Chainflip's cross-chain liquidity to execute trades efficiently and securely.
Overview
Features
- Dollar-Cost Averaging (DCA): Automatically invest in Bitcoin at regular intervals.
- Limit Orders: Set target prices for Bitcoin purchases.
- Smart Contract Integration: Secure order creation and management.
- Automated Execution: Server-side processing for timely order execution.
How It Works
DCA Flow
- User creates a DCA order on our hub_contract.
- Our server listens for contract events.
- When an event is detected, a cronjob is pushed using BullMQ.
- A worker executes the Bitcoin purchase at the specified intervals.
Limit Order Flow
- User creates a limit order on our hub_contract.
- Our server posts a job to a repeatable queue (running every minute).
- The job checks the current Bitcoin price.
- If the price is within the target range, it executes the buying order.