Coder Social home page Coder Social logo

pankaj-chourasia / dummy-stock-exchange Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12 KB

A C++ stock exchange simulation with features like buying/selling stocks, portfolio checks, and persistent data storage. Includes error handling, a user-friendly menu, and file I/O. Work-in-progress with plans for API integration.

License: Other

C++ 100.00%
cpp error-handling finance financial-software portfolio-management stock-exchange-simulator user-interaction-design open-source

dummy-stock-exchange's Introduction

Dummy Stock Exchange (DSE) Project

This project is a simple implementation of a Dummy Stock Exchange (DSE) in C++, enhanced with additional features.

Implemented Features

  1. Error Handling and Validation:

    • Implemented robust error handling for user inputs to ensure data integrity.
    • Validated user inputs for stock symbols, prices, and quantities.
  2. User Interaction:

    • Implemented a user-friendly menu system allowing users to easily interact with the program.
    • Provided options for buying, selling, checking the portfolio, and exiting the program.
  3. Persistent Data Storage:

    • Integrated file I/O to save and load the trader's portfolio data.
    • Portfolio data is stored in a file ("portfolio_data.txt") for persistence across sessions.

Work in Progress

  1. Additional Stock Information:
    • In progress: Working on integrating live stock data using APIs.
    • Targeting APIs such as Alpha Vantage or Yahoo Finance to display real-time stock information.

How to Run the Program

  1. Clone the repository to your local machine:

    https://github.com/Pankaj-Chourasia/Dummy-Stock-Exchange.git
  2. Compile the C++ code:

     g++ DSE.cpp -o stock_exchange
  3. Run the executable:

       ./stock_exchange

Usage

Follow the on-screen menu to perform various actions like buying, selling, checking the portfolio, and saving/loading data.

Contributing

If you would like to contribute to this project, please follow the standard procedures:

  • Fork the repository.
  • Create a new branch for your feature (git checkout -b feature/new-feature).
  • Commit your changes (git commit -m 'Add new feature').
  • Push to the branch (git push origin feature/new-feature).
  • Open a Pull Request.

License

This project is licensed under the MIT License.

dummy-stock-exchange's People

Contributors

pankaj-chourasia avatar

Watchers

 avatar

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.