This application uses ML Web service to analyse Twitter sentiments
Click in SIG-IN
Put your e-mail and password or sign-in with your Google Account, clique in Register
Select a payment plan, make the payment, after that you will be redirected to the main screen
Choose a stock
Enjoy it!
A distribuited application
Node version 10.15.0 or better
Create an account in Alpaca
Create a Twitter developer account, create a App and get your Twitter credentials: consumer_api_key, consumer_secret_key, access_token, access_token_secret
Clone or download example, install the dependencies using:
npm install
Using file /src/config/api_example.js as example, create a new file /src/config/api.js with:
- your Alpaca credentials
- your Twitter credentials
- your Stripe credentials
- your Foreign Exchange Market credentials
- your Crypto Compare credentials
module.exports = {
alpaca: {
APCA_API_SECRET_KEY: 'YOUR SECRET KEY HERE',
APCA_API_KEY_ID: 'YOUR KEY HERE'
},
twitter: {
consumer_api_key: 'YOUR CONSUMER API HERE',
consumer_secret_key: 'YOUR CONSUMER SECRET KEY HERE',
access_token: 'YOUR ACCESS TOKEN HERE',
access_token_secret: 'YOUR ACCESS TOKEN SECRET HERE',
number_of_tweets: 100 // default 15 up to 100
},
stripe: {
STRIPE_KEY_PUB: 'YOUR PUBLIC KEY HERE',
STRIPE_KEY_PRIV: 'YOUR SECRET KEY HERE'
},
firebase_api : {
apiKey: 'YOUR API KEY HERE',
authDomain: 'YOUR DOMAIN HERE',
databaseURL: ' YOUR DATABASE URL HERE firebaseio.com',
projectId: 'YOUR PROJECT ID HERE',
storageBucket: 'YOUR PROJECT ID HERE.appspot.com',
messagingSenderId: 'YOUR MESSEGING SENDER ID HERE',
appId: 'YOUR APP ID HERE',
measurementId: 'YOUR MESUREMENTE ID HERE',
databaseURL: 'https://YOUR PROJECT ID HERE.firebaseio.com',
},
fxmarket: {
fxmarket_api_key: 'YOUR KEY HERE'
},
cryptocompare: {
cryptocompare_api_key: 'YOUR KEY HERE'
}
}
In Firebase: Project Settings > Service Accounts tab > Generate new private key Download file and save it in src/config as serviceAccountKey.json
To run use npm or nodemon
npm start
To change port that application is listening to, access file /src/config/general.js, and modify value of serverPort
module.exports = {
serverPort: 3500,
logdir: "log"
}
To put in production user PM2 for instance or Heroku
From your broswer of from Postman access the URL below, fow instance to get intel about Apple stock
http://localhost:3500/api/asset/AAPL
It will result in the information:
{
id: "b0b6dd9d-8b9b-48a9-ba46-b9d54906e415",
class: "us_equity",
exchange: "NASDAQ",
symbol: "AAPL",
status: "active",
tradable: true,
marginable: true,
shortable: true,
easy_to_borrow: true
}
Try another stocks...
GOOGL Google
AAPL Apple
PBR Petrobrás
BMY Bristol-Myers Squibb Company
Manually Trading Stocks Using Postman and the Alpaca API
TextBlob: Simplified Text Processing
TextBlob Sentiment: Calculating Polarity and Subjectivity
Python for NLP: Movie Sentiment Analysis using Deep Learning in Keras
LSTM Sentiment Analysis | Keras
Machine Learning — Word Embedding & Sentiment Classification using Keras
https://codelabs.developers.google.com/codelabs/firebase-web/#15
https://github.com/balta-io/1965
https://medium.com/@_josueperalta/using-firebase-auth-with-a-custom-node-js-server-part-1-53bdb622c89a
https://codeforgeek.com/manage-session-using-node-js-express-4/
https://medium.com/novasemita/auth-using-firebaseui-firebase-functions-session-cookies-f2447bf42201
https://medium.com/@vladfr/use-cloud-firestore-with-async-bce875af0183
Ports:
- 5228
- 5229
- 5230
https://stripe.com/docs/recipes/custom-checkout
https://medium.com/@gordonnl/headless-stripe-payments-with-firebase-9b12639ea118
-
Rodrigo Moraes Silveira Git hub - (https://github.com/rodrigoms2004) E-mail - rodrigoms2004@gmail.com Discord - rodrigo.silveira#4776
-
Marco Alessandro de Campos Git hub - (https://github.com/titocampos) E-mail - titocampos@gmail.com Discord - titocampos
-
Craig Austin Git hub - (https://github.com/WannaBreakout) E-mail - craig07may@gmail.com Discord - cabin
-
Stefan Fricke Git hub - (https://github.com/Stefan566) E-mail - sfricke@sfricke.de Discord - Stefan999