Skip to content

Chandangowdatk/AlgorithmTrading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm Trading

A Java-based algorithmic trading system that provides a foundation for implementing automated trading strategies.

Features

  • Real-time price updates
  • Trade execution tracking
  • Trade history management
  • Market analysis framework
  • Unit testing support

Prerequisites

  • Java 8 or higher
  • Maven 3.6 or higher
  • JUnit 5 (included in dependencies)

Project Structure

src/
├── main/
│   └── java/
│       └── com/
│           └── trading/
│               └── AlgorithmTrading.java
└── test/
    └── java/
        └── com/
            └── trading/
                └── AlgorithmTradingTest.java

Getting Started

  1. Clone the repository:

    git clone https://github.com/Chandangowdatk/AlgorithmTrading.git
    cd AlgorithmTrading
  2. Build the project:

    mvn clean install
  3. Run the tests:

    mvn test

Usage Example

// 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();

Implementation Details

The system currently includes:

  • AlgorithmTrading class: Main class for trading operations

    • Price updates
    • Trade execution
    • Trade history tracking
    • Market analysis framework
  • Trade class: Inner class representing individual trades

    • Action (BUY/SELL)
    • Price
    • Quantity
    • Timestamp

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Your Name - @yourtwitter

Project Link: https://github.com/Chandangowdatk/AlgorithmTrading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages