SuperSimpleStocks | SuperSimpleStocks code that models a very simple trading

 by   grahamkerr Python Version: Current License: No License

kandi X-RAY | SuperSimpleStocks Summary

kandi X-RAY | SuperSimpleStocks Summary

SuperSimpleStocks is a Python library. SuperSimpleStocks has no bugs, it has no vulnerabilities and it has low support. However SuperSimpleStocks build file is not available. You can download it from GitHub.

SuperSimpleStocks is a code written for python 2.7 that models a very simple trading market. 1) supersimplestocks.py Contains three classes: Stock, Trade and Portfolio. Using these allows you to set up a collection of stocks with certain attributes, make trades on those stocks, and include those trades within your portfolio. Stocks: This class is set up with the stock name, type, last dividend, par value, Fixed Dividend. ... in this case fixed dividend = None. You can then compute the dividend yield by,. ... where the input, 40.00, is the price. You can also compute the P/E ratio by,. ... where again, 40.00 is the price. You can make a trade using the method .trade_stock(PRICE, QUANTITY, BUY or SELL). ... this then makes an object called teatrade using the Trade class. Trades: This class holds a trade. It takes the stock name, price, quantity, buy or sell indicator, and the cuurent time as a timestamp. The timestamp is in seconds, but the class is printed with time in a readable format (YYYY/MM/DD, HH:MM:SS). Multiple trades can be added to a portfolio object. Portfolio: This class holds one or more trades in a list, along with the trader's name. e.g for a list of trades = [trade1, trade2, trade3]. A number of methods using all of the trades can then be performed such as -. Computing the volume weighted share price for a particular stock over a set time range,. ... for 15 in units of minutes. Computig the All Share index over a time range,. ... again, for 15 in units of minutes. You can open an empty portfolio by inputting an empty list,. In both cases (an initially empty portfolio, or one that is created with some pre-existing trades), trades can be added by,. ... for a single trade or. ... for multiple trades held in a list called trades. 2) supersimplestocks_examples.py Contains a few examples of using the classes and their methods. No user input is required until the very end, where the code looks at what happens if you enter an invalid input (for example, a negative price).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              SuperSimpleStocks has a low active ecosystem.
              It has 0 star(s) with 0 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              SuperSimpleStocks has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of SuperSimpleStocks is current.

            kandi-Quality Quality

              SuperSimpleStocks has no bugs reported.

            kandi-Security Security

              SuperSimpleStocks has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              SuperSimpleStocks does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              SuperSimpleStocks releases are not available. You will need to build from source code and install.
              SuperSimpleStocks has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SuperSimpleStocks
            Get all kandi verified functions for this library.

            SuperSimpleStocks Key Features

            No Key Features are available at this moment for SuperSimpleStocks.

            SuperSimpleStocks Examples and Code Snippets

            No Code Snippets are available at this moment for SuperSimpleStocks.

            Community Discussions

            No Community Discussions are available at this moment for SuperSimpleStocks.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install SuperSimpleStocks

            You can download it from GitHub.
            You can use SuperSimpleStocks like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/grahamkerr/SuperSimpleStocks.git

          • CLI

            gh repo clone grahamkerr/SuperSimpleStocks

          • sshUrl

            git@github.com:grahamkerr/SuperSimpleStocks.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link