GithubHelp home page GithubHelp logo

oskarvid / coinsimulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johntitus/coinsimulator

0.0 2.0 0.0 3.44 MB

Simulates buying crypto-currencies over time.

License: MIT License

JavaScript 100.00%

coinsimulator's Introduction

coinsimulator

Simulates buying crypto-currencies over time.

Using historical data from CoinMarketCap, it runs a strategy against each week of data, buying coins. At the end of the run, it tells you the value of your holdings.

Requires Node.js.

Default Strategy

Buys the top 50 coins, by market cap, spending a total of $100 each week. To change the number of coins or the amount spend, edit strategies/top50.js or create your own strategy and call it via the -s option below.

Install

git clone [email protected]:johntitus/coinsimulator.git
cd coinsimulator
npm install

Run

node simulate

Options

-b, --begin [date] - Start date (YYYY-MM-DD)
-e, --end [date]  - End date(YYYY-MM-DD)
-s, --strategy [name] - Strategy to use // Defaults to top50

Sample output

(runs from June 1, 2016 till present):

node simulate.js -b 2016-06-01
...
Spent: $5,500
Value: $75,846.427
Profit: $70,346.427
Growth: 1279.03%

coinsimulator's People

Contributors

johntitus avatar

Watchers

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