An open API service indexing awesome lists of open source software.

https://github.com/jonathanyiv/stock_picker

Implementation of a Stock Picker in Ruby
https://github.com/jonathanyiv/stock_picker

ruby

Last synced: 22 days ago
JSON representation

Implementation of a Stock Picker in Ruby

Awesome Lists containing this project

README

          

# Stock Picker Project

This project implement a method #stock_picker that takes in an array of stock prices, one for each hypothetical day. It then returns a pair of days representing the best day to buy and the best day to sell, with the first day starting at 0.

This is a project from [The Odin Project](https://www.theodinproject.com/courses/ruby-programming/lessons/building-blocks).

## Installation

Open your Terminal/Command Line. Navigate to the directory where your version will live. Type in the following:

```
$ git clone https://github.com/JonathanYiv/stock_picker.git
$ cd stock_picker
$ ruby stock_picker.rb
```