Coder Social home page Coder Social logo

stockmanager's Introduction

Stock Manager

Stock Manager is an application built on top of the ShitDB library. It provides functionality for managing stock transactions and generating sheets in Google Sheets.

Push Code

To push the code to your Google Apps Script project, run clasp login to authenticate with your Google account, then execute clasp push.

Summary

The Stock Manager application reads data from the transaction sheet, which contains stock transaction details, and performs the following operations:

  1. Reads Transaction Data: Reads through the transaction sheet, extracting the following elements:

    Ticker Side Quantity Total Price
    SLCE3 BUY 200 $3,690.00 $18.45
  2. Creates Position Sheet: Generates a sheet called generatedPosition containing aggregated stock position data. Each row in the generatedPosition sheet represents a unique stock position and contains the following elements:

    Ticker AvgPrice Qty
    VALE3 66.352125 4000
  3. Creates Trade Sheet: Generates a sheet called generatedTrade containing trade information. Each row in the generatedTrade sheet represents a trade and contains the following elements:

    Ticker Quantity AvgBuyPrice SellPrice Profit ProfitPercentage
    CMIG3 300 15 15.45 135 0.03

Usage

Main Function

The main function of the Stock Manager application is main(), which is responsible for initiating the stock management process. It can be manually triggered or set to run on a schedule.

Usage Example

// Import the Stock Wallet module
import { main } from 'stock-manager';

// Manually trigger the main function
main();

stockmanager's People

Contributors

gardusig avatar

Stargazers

 avatar  avatar

Watchers

 avatar

stockmanager's Issues

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.