This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This function combines data from Pandas data on stocks, and the Yahoo Finance API | |
| """ | |
| def stockhistory(stock2check): | |
| import pandas_datareader.data as web | |
| import datetime | |
| from yahoo_finance import Share | |
| stock = Share(stock2check) | |
| ylp = stock.get_year_low() # Returns the Year Low price for the stock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def cryptoprices(pair): | |
| from poloniex import Poloniex | |
| apiKey = "" | |
| secret = "" | |
| polo = Poloniex(apiKey, secret) | |
| market_data = polo.returnTicker()[pair] | |
| bid = market_data["highestBid"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def google_vision(): | |
| import io | |
| import os | |
| from google.cloud import vision | |
| from google.cloud.vision import types | |
| #https://cloud.google.com/vision/docs/auth | |
| os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "Path to Application default credentials JSON ADC" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from textblob import TextBlob | |
| text = """TextBlob aims to provide access to common text-processing operations through a familiar interface. / | |
| You can treat TextBlob objects as if they were Python strengs that learned how to do Natural Language Processing.""" | |
| #"This is bad " = Sentiment Sentiment(polarity=-0.6999999999999998, subjectivity=0.6666666666666666) | |
| #"This is Good" = Sentiment Sentiment(polarity=0.7, subjectivity=0.6000000000000001) | |
| blob = TextBlob(text) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| from nltk.corpus import stopwords | |
| Small = { | |
| 'zero': 0, | |
| 'one': 1, | |
| 'two': 2, | |
| 'three': 3, | |
| 'four': 4, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def alertonlow(): | |
| """ This Program uses the Binance API to Send Text Alerts for Price Action. Right now it's set up to | |
| send a Text Alert, when any Crypto Coin is Less than or Equal to 2% of the 24HR Low """ | |
| from binance.client import Client | |
| from twilio.rest import Client as twilioclient | |
| twilioclientsid = '' # Twilio User ID | |
| twilioclienttok = '' # Twilio User Token |
OlderNewer