Coder Social home page Coder Social logo

appscdn / cryptoportfolio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from creepto/cryptoportfolio

0.0 0.0 0.0 10 KB

Manage your crypto portfolio, and show the value of your crypto coinss, using the CoinGecko API

Home Page: https://www.publish0x.com/creepto-on-crypto/diy-code-a-crypto-portfolio-manager-xpjjwll?a=Vyb8NOLevA&tid=github

License: Other

CSS 8.70% JavaScript 67.05% HTML 9.31% Python 14.93%

cryptoportfolio's Introduction

Crypto Portfolio

This repo contains 3 separate code bases that use the CoinGecko API to retrieve the current values of your coins. It's meant for education purposes only - these are by no means a complete/tested product.

Usage

You'll need to update a JSON array with the coin symbols you want and the units you have. After the apps run, the current dollar value and the total will be displayed.

Getting the symbols

To get all available coin symbols for your portfolio, go to this API response and search for your coins.

Portfolio structure

[
  {
    "coin": "bitcoin",
    "units": 1.123
  },
  {
    "coin": "ethereum",
    "units": 37
  },
  {
    "coin": "cardano",
    "units": 10000
  }
]

Available applications

1. HTML app

Requirements

  1. A modern browser
  2. A text editor

Usage

  1. Edit the file "portfolio.js" with the coins you have, and the number of units.
  2. Open "portfolio.html in the browser.

2. Python app

Requirements

  1. Python3 (though 2.7 may work as well with tiny adjustments)
  2. A text editor

Usage

  1. Update the portfolio variable in the file portfolio.py with the coins you have, and the number of units.
  2. Use your console/terminal app to get to the Python folder, and run python portfolio.py from the command line.

3. Node.JS app

Requirements

  1. Node.JS installed (check https://nodejs.org/ to get the version that runs on your OS).
  2. Text editor

Usage

  1. Edit the file "portfolio.js" with the coins you have, and the number of units.
  2. run node index in the Node folder. If you've installed NPM, you can also run npm start in the Node folder.

License

The source is licensed under MIT license. Feel free to use it, change it, and do whatever you want with it ๐Ÿ˜€.

Beer! ๐Ÿป

If you feel like this code is educational, entertaining, or useful to you in any way, drop me some ๐Ÿบ money in the shape of ETH/BAT/DAI/whatever at guy.wantsome.eth.

cryptoportfolio's People

Contributors

travelingtechguy 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.