Go to file
Nicolás Sánchez 86ed6830f4 force_pause now optional in subscribe/redeem 2025-06-23 17:46:11 -03:00
keys flask and other bits and bobs 2025-01-07 09:55:16 -03:00
libraries global_status now includes currency 2025-03-13 12:41:39 -03:00
.gitignore flask and other bits and bobs 2025-01-07 09:55:16 -03:00
README.md README 2025-01-10 09:39:36 -03:00
config.json work work work 2025-01-08 18:19:06 -03:00
config.json.example README 2025-01-10 09:39:36 -03:00
credentials.py.example README 2025-01-10 09:39:36 -03:00
main.py force_pause now optional in subscribe/redeem 2025-06-23 17:46:11 -03:00
profits.py kucoin transfers 2025-01-09 14:30:29 -03:00

README.md

DCAv2Earn

DCAv2Earn is a companion project for DCAv2. It automates the process of allocating a portion of idle funds on your exchange accounts to earn programs provided by each exchange. The system ensures that your funds are efficiently utilized to generate passive income while maintaining a minimum balance in your trading accounts at all times.

Features

  • Automatic Allocation: Automatically transfers a configurable percentage of your idle funds to the earn program of each supported exchange.
  • Configurable Parameters:
    • Percentage of Funds: Specify what percentage of your idle funds should be allocated to the earn program.
    • Minimum Balance: Set a minimum balance that must remain in your trading account to prevent over-allocation.
    • Step Size: Define the step size for balance adjustments to ensure smooth transitions.
  • Multiple Exchanges Support: Currently supports Binance, Gate.io, KuCoin and OKX. More exchanges can be added as needed.
  • Logging and Monitoring: Provides real-time monitoring of your funds' allocation and performance.

Prerequisites

  • Python 3.8+: Ensure you have Python 3.8 or higher installed.
  • API Keys: Obtain API keys from the supported exchanges with the necessary permissions for transferring funds (NOT withdrawing) and accessing earn programs.

Installation

  1. Clone the Repository:

    git clone https://gitea.nicosanchez.com.ar/nicolas/DCAv2Earn.git
    cd DCAv2Earn
    
  2. Configure the System:

    • Create a config.json file with the necessary configuration parameters.
    • Use config.json.example as a template.
  3. Load the credentials to credentials.py

    Check credentials.py.example and replace the placeholders with your actual API keys. Then, rename the file to credentials.py.
    
  4. Run the System:

    python main.py
    

Configuration

  • lap_time: The time in seconds between each lap of the system. During each lap, the system checks and adjusts your funds' allocation.
  • minimum_amount_in_trading_account: The minimum amount of funds that must remain in your trading account at all times to prevent over-allocation.
  • percentage_of_funds_to_commit: The percentage of your idle funds to allocate to the earn program.
  • step_size: The step size for balance adjustments, ensuring smooth transitions between balances.
  • api_keys: API keys for each supported exchange with the necessary permissions. The API keys are stored in credentials.py

Usage

ATTENTION: THIS PROGRAM IS A PERSONAL PROJECT AND IS NOT INTENDED TO BE USED BY ANYONE ELSE. USE AT YOUR OWN RISK.

The system runs continuously in the background, automatically allocating your funds to the earn program according to the specified parameters. You can monitor the system's performance and status through the provided logging and monitoring features.

Support

For any questions, issues, or feature requests, please create an issue on the Gitea repository (https://gitea.nicosanchez.com.ar/nicolas/DCAv2Earn/issues).

License

DCAv2Earn is released under the MIT License.