A Java-based algorithmic trading system that provides a foundation for implementing automated trading strategies.
- Real-time price updates
- Trade execution tracking
- Trade history management
- Market analysis framework
- Unit testing support
- Java 8 or higher
- Maven 3.6 or higher
- JUnit 5 (included in dependencies)
src/
├── main/
│ └── java/
│ └── com/
│ └── trading/
│ └── AlgorithmTrading.java
└── test/
└── java/
└── com/
└── trading/
└── AlgorithmTradingTest.java
-
Clone the repository:
git clone https://github.com/Chandangowdatk/AlgorithmTrading.git cd AlgorithmTrading -
Build the project:
mvn clean install
-
Run the tests:
mvn test
// Create a new trading instance for a specific symbol
AlgorithmTrading trading = new AlgorithmTrading("AAPL");
// Update the current price
trading.updatePrice(150.50);
// Execute a trade
trading.executeTrade("BUY", 150.50, 100);
// Get trade history
List<Trade> history = trading.getTradeHistory();The system currently includes:
-
AlgorithmTradingclass: Main class for trading operations- Price updates
- Trade execution
- Trade history tracking
- Market analysis framework
-
Tradeclass: Inner class representing individual trades- Action (BUY/SELL)
- Price
- Quantity
- Timestamp
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Your Name - @yourtwitter
Project Link: https://github.com/Chandangowdatk/AlgorithmTrading