Code Monkey home page Code Monkey logo

tradiegood's Introduction

Tradie - Solana Trading Bot

Tradie is an innovative, open-source trading bot tailored for the Solana blockchain. Leveraging Jupiter for token swapping and CryptoCompare for market analysis, Tradie aims to empower traders with automated, sophisticated trading strategies. Developed with TypeScript, Tradie offers robust, type-safe code, enhancing both performance and maintainability.

Tradie

Features

  • Efficient Token Swapping: Utilizes Jupiter for seamless token exchanges on the Solana blockchain.
  • Detailed Market Analysis: Leverages candlestick data from CryptoCompare to guide trading decisions.
  • Advanced Technical Indicators: Incorporates indicators like Relative Strength Index (RSI), short and medium Exponential Moving Averages (EMA), and Bollinger Bands (BB) for market analysis.
  • Customizable Trading Strategies: Allows detailed configuration of slippage, stop loss, take profit, RSI.
  • Real-Time Data Processing: Fetches market data at user-defined intervals for timely trading decisions.
  • Transparent Logging: Provides extensive logging to monitor operations and performance.

Prerequisites

  • Node.js (version 21+ recommended, but should be compatible with older versions) installed on your system. Visit Node.js for installation instructions.
  • A Solana wallet private key.
  • A CryptoCompare API key for market data access, obtainable here.
  • Solana RPC endpoint, obtainable here.

Technical Details

  • TypeScript: Tradie is written in TypeScript, offering enhanced code quality and developer experience. Make sure you're familiar with TypeScript for any contributions or customizations.

Installation

  1. Clone the Tradie repository:

    git clone https://github.com/oboshto/tradie.git
    cd tradie
  2. Install dependencies:

    npm install

Configuration

  1. Rename .env.copy to .env and configure your settings.
  2. Open the .env file in a text editor and fill in your details:
  • PRIVATE_KEY: Your Solana wallet private key.
  • CRYPTO_COMPARE_API_KEY: Your API key from CryptoCompare.
  • RPC_ENDPOINT: Your Solana RPC endpoint URL.
  • BUY_TOKEN_ADDRESS: The address of the token you want to buy.
  • QUOTE_SYMBOL: The symbol of the quote currency (default: USDC).
  • CANDLE_AGGREGATE_MINUTES: Candlestick aggregation period in minutes (default: 15).
  • GET_MARKET_DATA_INTERVAL_SECONDS: Interval for fetching market data in seconds (default: 30).
  • SLIPPAGE_PERCENT: Maximum acceptable slippage percentage (default: 10).
  • STOP_LOSS: Stop loss percentage (default: 7).
  • TAKE_PROFIT: Take profit percentage (default: 25).
  • RSI_TO_BUY: RSI lower value to buy (default: 30).
  • RSI_TO_SELL: RSI upper value to sell (default: 70).
  • TRANSACTION_PRIORITY_FEE: solana transaction priority fee (default: 'auto', or in SOL e.g. 0.005).
  • LOG_LEVEL: Logging level (deafult: info).

Usage

Start the bot with npm start. Tradie will execute trades based on your settings.

Future Plans

  • Indicator Customization: Plans for more customizable indicator values.
  • More Technical Indicators: Expanding the array of technical analysis tools available.

Risk Disclaimer

The use of Tradie and any automated trading software inherently involves financial risks, including the potential loss of funds. The developer(s) of Tradie cannot be held responsible for any financial losses incurred while using the bot. Users should trade with caution and only with funds they can afford to lose. This software is provided "as is", with no guarantee of profitability or performance.

Community

Join our Discord for discussions and support: Tradie Discord.

Contributing

Fork the repo, create a feature branch, and submit your pull request for improvements.

License

Available under the MIT License, promoting open collaboration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.