Skip to content

Releases: josh-wjp/hodlbot-vitefe

v3.0.0 Release

15 Feb 22:14
Compare
Choose a tag to compare

Fixed handleApplyStrategy Function:

Removed duplicated and malformed code (e.g., nst handleApplyStrategy and repeated logic).
Cleaned up the structure to define a valid strategy object and pass it to the applyStrategy function prop.
Added logic to store the strategy in the setAutoTradingStrategies state for the selected cryptocurrency.
Validated and Kept handleResetToDefault:

Confirmed that the function resets all trading strategy parameters to default values.
Added an alert to notify the user when defaults are applied.
Checked Prop Passing:

Verified that applyStrategy and setAutoTradingStrategies are correctly passed as props from the parent component (App.jsx).
Ensured the function signatures matched their usage in the FrontEndDesign component.
Removed Redundant or Corrupted Code:

Cleaned up unnecessary and misaligned code, such as resetStrategy={resetStrategy}, which could cause issues if resetStrategy isn't properly defined.
Improved indentation, removed duplicate lines, and resolved all syntax errors.
Tested Integration:

Ensured the following functionality works seamlessly:
Applying a trading strategy with the "Apply Strategy" button.
Resetting strategy values to defaults with the "Reset to Default" button.

Buy Logic:
The auto trader calculates the quantity to buy so that at least $10 is spent (using Math.ceil(10 / decision.price)).

Sell Logic:
For sells, the code checks the current holdings (stored in your holdings state) and the average cost. It will only execute a sell if the current price is at least 5% above the average cost (you can adjust this threshold as needed). When this condition is met, it sells 20% of your holdings (with a minimum of 1 coin).

State Dependencies:
The polling effect now depends on both autoTrading and holdings so that when holdings update, the sell decision re-evaluates.

Full Changelog: v2.1...v3.0.0

v2.1.0 Update

10 Feb 16:57
Compare
Choose a tag to compare
  1. Improved Frontend:
  • Added CSS styles to handle layout and scrolling for large lists (e.g., transactions and crypto balances).
  • Ensured the UI remains responsive and visually appealing.
  • Added a coin index that refreshes every 60 seconds
  • Retired the manual "Get Trade Decision" button and its input, streamlining user interaction by integrating trade decisions directly into the cryptocurrency index.
  1. Tested and Fixed Layout Issues:
  • Ensured balances, transactions, and other features work correctly in their respective sections while maintaining functionality.

Hodlbot - v2.0.0

09 Feb 19:16
Compare
Choose a tag to compare

Adds the ability to conduct mock trades and view transactions/account balances. Updated UI.

Hodlbot - v1.0.0

08 Feb 23:07
Compare
Choose a tag to compare

Core Features of HodlBot AI

  1. Cryptocurrency Price Fetching:
  • Retrieves the current price of cryptocurrencies (e.g., Bitcoin, Dogecoin) from the CoinGecko API.
  1. Trade Decision-Making:
  • Uses AI-driven strategies (like RSI) to determine whether to "BUY," "SELL," or "HOLD" a cryptocurrency.
  1. NEAR Wallet Integration:
  • Allows users to connect their NEAR wallet for personalized interaction and secure login.
  1. User-Friendly UI:
  • Clean and modern design that displays:
  • The trade decision (BUY/SELL/HOLD).
  • Current cryptocurrency price.
  • RSI (Relative Strength Index) value for the coin.
  • Includes a responsive input field to query any cryptocurrency.
  1. Backend Powered by FastAPI:
  • RESTful API that handles:
  • Price fetching (/price/{coin_id}).
  • AI-based trade decisions (/trade/{coin_id}).
  • Configured with CORSMiddleware to allow secure cross-origin communication between the frontend and backend.
  1. Frontend with React:
  • React-based app for seamless user experience.
  • Fetches data from the FastAPI backend to display live cryptocurrency metrics.
  1. Deployed on Azure:
  • Backend hosted on Azure App Service.
  • Frontend deployed as a Static Web App on Azure, ensuring scalability and high availability.
  1. Authentication:
  • Displays a personalized greeting once the NEAR wallet is connected.
  • Offers a logout feature for a seamless session management experience.
  1. Educational Purpose Notice:
  • A prominent disclaimer indicating the tool is "For Educational Purposes Only."
  1. Fully Automated Deployment:
  • CI/CD pipeline for both frontend and backend, enabling smooth updates with GitHub Actions.

Future Enhancements

  1. Add More Indicators:
  • Incorporate MACD, Bollinger Bands, or Moving Averages for more robust trade decisions.
  1. User-Configurable Settings:
  • Allow users to adjust risk tolerance or choose their preferred strategy.
  1. Real-Time Price Updates:
  • Use WebSockets to display live price updates.
  1. Portfolio Tracking:
  • Let users view and manage their crypto holdings through the NEAR wallet.
  1. Email/Notification Alerts:
  • Send trade alerts based on user preferences.
  1. Dark/Light Mode Toggle:
  • Add a UI theme toggle for user customization.