Giter Site home page Giter Site logo

sakshamssr / investa Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 4.95 MB

Investa is a full-stack stock market simulator providing real-time trading data.

Python 24.18% HTML 73.29% JavaScript 2.53%
django javascript python python3 stock stock-market stock-market-simulator stock-trading stocks stocks-api

investa's Introduction

Stock Market Simulator

Stock Market Simulator buy or sell stocks with real time data with an intreactive and customizable user dashboard.

Welcome to Investa! ๐ŸŒŸ Here's how to get started:
This is a stock market simulator

  • Create Your Account: Sign up to start using Investa.
  • Demo Money: Once registered, you'll receive $10,000 in virtual money to begin trading.
  • Buying Stocks: Use your demo money to buy stocks. Simply search for the stocks you're interested in, and purchase them directly from your personalized dashboard.
  • Real-Time Updates: Stock prices update in real-time using the Yahoo Finance API, so you always have the latest market data at your fingertips.
  • Track Your Portfolio: Monitor your assets and watch their performance over time. Your interactive dashboard makes it easy to see how your investments are doing and make informed decisions.

Dashboard

Dashboard displays a watchlist with an interactive graph, a portfolio overview of the holding stocks, and the total stock allocation. Your Investa dashboard is your personal trading hub! Here's what it shows:

  • Total Balance: See the total value of your account, investments.
  • Profit/Loss: Track your overall gains or losses in real-time.
  • Market Status: Know whether the market is closed, regular, pre-market, or post-market.
  • Watchlist: Keep an eye on the stocks you're interested in.
  • Watchlist Graphs: Visualize the performance of stocks on your watchlist.
  • Portfolio Overview: Get a detailed summary of all your investments.
  • Asset Allocations: See how your investments are distributed across different assets.

Home Page

Details (Buy/Sell) Page

This page allows users to monitor graphs and live stock prices, as well as buy and trade virtual stocks. The search page is your go-to for detailed stock information and trading. Here's what you can do:

  • View Stock Details: See the current price, previous close, and detailed stats like 52-week high/low, market day high/low.
  • Real-Time Price Chart: Track the stock's performance with an up-to-date price chart.
  • Market Status: Know whether the market is closed or open.
  • Buy/Sell Stocks: If you hold stocks, you can easily buy or sell directly from this page.
  • Watchlist: Add stocks to your watchlist for future tracking.

Search Page

Run Locally

  1. Clone the repository:
git clone https://github.com/sakshamssr/Investa.git
  1. Navigate to the project directory:
cd Investa
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the Django development server:
python manage.py runserver
  1. Access the application by visiting http://localhost:8000 in your web browser.
http://localhost:8000

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.

investa's People

Contributors

sakshamssr avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ahmedthahir

investa's Issues

Dashboard not working

Environment:


Request Method: GET
Request URL: http://localhost:8000/dashboard

Django Version: 5.0.4
Python Version: 3.11.4
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'app1']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File "/Users/ahmedthahir/anaconda3/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ahmedthahir/anaconda3/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ahmedthahir/Investa/app1/views.py", line 131, in dashboard
    data = user_a(requests)
           ^^^^^^^^^^^^^^^^
  File "/Users/ahmedthahir/Investa/app1/views.py", line 100, in user_a
    stockname=user.stockbuy.keys()
              ^^^^^^^^^^^^^^^^^^

Exception Type: AttributeError at /dashboard
Exception Value: 'list' object has no attribute 'keys'

Home Page

I followed your quick start steps as is, but I just get a hello world screen.

image

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.