Coder Social home page Coder Social logo

quoteservice's Introduction

quoteService

Simple twilio app to service quote information

A flask app that listens for sms requests and returns with quote information.

To use, text the number with a symbol prefixed with $. Ex. $MSFT

Commands: $SYMBOL -> Retrieves any tickers in the message prefixed with $. Multiple symbols can be retrieved by entering more than one symbol. Spaces can be used as optional separators for easy of use. Ex. to find the quote for Microsoft, send $MSFT. For Microsoft and Apple, send $MSFT$AAPL or $MSFT $AAPL Sending asd$AAPL will result in $AAPL being returned and the prefix before $ being thrown away. Symbols are case insensitive.

help -> To access the unsubscribe menu

last -> repeats the last query

Entering a text string that does not contain $ and is not a command will result in the help message.

Before running the app, rename the example.json file to config.json. Currently, the twilio keys are not used so they can be left blank.

Data is retrieved through the public markitondemand demo API. For production use, a non rate limited API would be needed. One would just need to implement a function to replace get_stock_quote_markit.

TODOS:

Implement unit tests for functions. Modularize functions.

quoteservice's People

Contributors

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