GithubHelp home page GithubHelp logo

propine-assesment-solution's Introduction

propine-assesment-solution

Working Process After running the code it gives a choice to select one of these:

  1. Given no parameters, return the latest portfolio value per token in USD
  2. Given a token, return the latest portfolio value for that token in USD
  3. Given a date, return the portfolio value per token in USD on that date
  4. Given a date and a token, return the portfolio value of that token in USD on that date

Input Parameters include Date in format Date must be format 21 Sep 2022 00:00:00 GMT OR 21 Sep 2023 note:For BTC enter date after 2009,For ETH enter date after 2015,for XRP enter date after 2012.

include Token in Format BTC/ETH/XRP

It accordingly calculates the current USD value for portfolio for tokens BTC, ETH, XRP The Total value of token is stored in BTCsum, ETHsum, XRPsum respectively Adding for deposit and substracting for withdrawal

Using API min-api.cryptocompare.com we find USD value of given token on the given date which is multiplied to sum of token

propine-assesment-solution's People

Contributors

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