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
- Host: GitHub
- URL: https://github.com/jonathanyiv/stock_picker
- Owner: JonathanYiv
- Created: 2017-08-03T19:35:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T21:24:23.000Z (almost 9 years ago)
- Last Synced: 2025-02-26T05:33:23.013Z (over 1 year ago)
- Topics: ruby
- Language: Ruby
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```