Code Monkey home page Code Monkey logo

gold_price_alert's Introduction

Financial market professionals are obsessed with prices. So much so that they often sign up to alerts on various asset classes that they follow in order to make a buy or sell decision when the price is at a level they feel is sensible to deal in.

I've always loved following the gold price, as it gives an indication of how much faith investors have in monetary policy and central bankers. The rule of thumb in the markets is, the higher the gold price, the more shaky the world's monetary system and the more caution should be exercised.

This is a simply command line program I wrote that uses the Nokogiri gem to scrape the live gold price from a webpage and send a text to the user if the price goes beyond a certain boundary. The Twilio gem is used to send a text message once the gold price goes above or below the range set by the user.

You'll need to set up an account with Twilio to secure an account sid and auth token, then store them in environmental variables using the dotenv gem. Do the same with your personal phone number as well.

To Run

git clone https://github.com/Adrian1707/gold_price_alert
ruby gold_price_alert.rb
Program runs until the gold price exits the range specified on line 34

gold_price_alert's People

Contributors

adrian1707 avatar

Watchers

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