Skip to content

Commit

Permalink
update endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed May 26, 2024
1 parent dbe0c21 commit fd97c14
Show file tree
Hide file tree
Showing 108 changed files with 643 additions and 2,370 deletions.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .github/workflows/main.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified app/GetStartEndDate.py
100644 → 100755
Empty file.
Empty file modified app/create_crypto_db.py
100644 → 100755
Empty file.
Empty file modified app/create_etf_db.py
100644 → 100755
Empty file.
Empty file modified app/create_institute_db.py
100644 → 100755
Empty file.
Empty file modified app/create_stock_db.py
100644 → 100755
Empty file.
Empty file modified app/cron_analyst_db.py
100644 → 100755
Empty file.
Empty file modified app/cron_analyst_ticker.py
100644 → 100755
Empty file.
Empty file modified app/cron_bull_bear_say.py
100644 → 100755
Empty file.
Empty file modified app/cron_congress_trading.py
100644 → 100755
Empty file.
Empty file modified app/cron_enterprise_values.py
100644 → 100755
Empty file.
Empty file modified app/cron_executive.py
100644 → 100755
Empty file.
Empty file modified app/cron_fundamental_predictor.py
100644 → 100755
Empty file.
Empty file modified app/cron_heatmap.py
100644 → 100755
Empty file.
Empty file modified app/cron_historical_price.py
100644 → 100755
Empty file.
Empty file modified app/cron_insider_trading.py
100644 → 100755
Empty file.
Empty file modified app/cron_market_movers.py
100644 → 100755
Empty file.
Empty file modified app/cron_market_news.py
100644 → 100755
Empty file.
Empty file modified app/cron_one_day_price.py
100644 → 100755
Empty file.
Empty file modified app/cron_options_bubble.py
100644 → 100755
Empty file.
Empty file modified app/cron_options_flow.py
100644 → 100755
Empty file.
Empty file modified app/cron_options_zero_dte.py
100644 → 100755
Empty file.
Empty file modified app/cron_portfolio.py
100644 → 100755
Empty file.
Empty file modified app/cron_price_alert.py
100644 → 100755
Empty file.
Empty file modified app/cron_price_analysis.py
100644 → 100755
Empty file.
Empty file modified app/cron_quote.py
100644 → 100755
Empty file.
Empty file modified app/cron_sec_filings.py
100644 → 100755
Empty file.
Empty file modified app/cron_sentiment_analysis.py
100644 → 100755
Empty file.
Empty file modified app/cron_similar_stocks.py
100644 → 100755
Empty file.
Empty file modified app/cron_stockdeck.py
100644 → 100755
Empty file.
Empty file modified app/cron_ta_rating.py
100644 → 100755
Empty file.
Empty file modified app/cron_top_etf_holder.py
100644 → 100755
Empty file.
Empty file modified app/cron_trend_analysis.py
100644 → 100755
Empty file.
Empty file modified app/cron_var.py
100644 → 100755
Empty file.
Empty file modified app/cron_wiim.py
100644 → 100755
Empty file.
Empty file modified app/financial_modeling_prep.py
100644 → 100755
Empty file.
Empty file modified app/html_template/price_alert.html
100644 → 100755
Empty file.
Empty file modified app/main.py
100644 → 100755
Empty file.
Empty file modified app/market_movers.py
100644 → 100755
Empty file.
Empty file modified app/mc.py
100644 → 100755
Empty file.
Empty file modified app/ml_models/__pycache__/backtesting.cpython-310.pyc
100644 → 100755
Empty file.
Empty file modified app/ml_models/__pycache__/classification.cpython-310.pyc
100644 → 100755
Empty file.
Empty file modified app/ml_models/__pycache__/fundamental_predictor.cpython-310.pyc
100644 → 100755
Empty file.
Empty file modified app/ml_models/__pycache__/prophet.cpython-310.pyc
100644 → 100755
Empty file.
Empty file modified app/ml_models/__pycache__/prophet_model.cpython-310.pyc
100644 → 100755
Empty file.
Empty file modified app/ml_models/backtesting.py
100644 → 100755
Empty file.
Empty file modified app/ml_models/classification.py
100644 → 100755
Empty file.
Empty file modified app/ml_models/fundamental_predictor.py
100644 → 100755
Empty file.
Empty file modified app/ml_models/lstm.py
100644 → 100755
Empty file.
Empty file modified app/ml_models/prophet_model.py
100644 → 100755
Empty file.
Empty file modified app/ml_models/regression.py
100644 → 100755
Empty file.
Empty file modified app/ml_models/test.py
100644 → 100755
Empty file.
Empty file modified app/ml_models/test2.py
100644 → 100755
Empty file.
Empty file modified app/primary_cron_job.py
100644 → 100755
Empty file.
Empty file modified app/rating.py
100644 → 100755
Empty file.
Empty file modified app/restart_json.py
100644 → 100755
Empty file.
Empty file modified app/secondary_cron_job.py
100644 → 100755
Empty file.
Empty file modified app/stats.py
100644 → 100755
Empty file.
Empty file modified app/ta_signal.py
100644 → 100755
Empty file.
Empty file modified app/trade_signal.py
100644 → 100755
Empty file.
Empty file modified app/twitter.py
100644 → 100755
Empty file.
Empty file modified fastify/all-strategies/server.js
100644 → 100755
Empty file.
Empty file modified fastify/all-watchlists/server.js
100644 → 100755
Empty file.
4 changes: 3 additions & 1 deletion fastify/app.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const cors = require('@fastify/cors');
require('dotenv').config({ path: '../app/.env' });
const fmpAPIKey = process.env.FMP_API_KEY;
const mixpanelAPIKey = process.env.MIXPANEL_API_KEY;
const twitchAPIKey = process.env.TWITCH_API_KEY;
const twitchSecretKey = process.env.TWITCH_SECRET_KEY;

const Mixpanel = require('mixpanel');
const UAParser = require('ua-parser-js');
Expand Down Expand Up @@ -82,7 +84,7 @@ fastify.register(require('./delete-strategy/server'), { pb });
fastify.register(require('./all-strategies/server'), { pb });
fastify.register(require('./save-strategy/server'), { pb });
fastify.register(require('./get-strategy/server'), { pb });
fastify.register(require('./get-twitch-status/server'), { axios });
fastify.register(require('./get-twitch-status/server'), { axios,twitchAPIKey, twitchSecretKey });
fastify.register(require('./get-portfolio/server'), { pb });
fastify.register(require('./create-price-alert/server'), { pb });
fastify.register(require('./get-price-alert/server'), { pb, fs, path });
Expand Down
Empty file modified fastify/buy-stock/server.js
100644 → 100755
Empty file.
Empty file modified fastify/create-portfolio/server.js
100644 → 100755
Empty file.
Empty file modified fastify/create-post-image/server.js
100644 → 100755
Empty file.
Empty file modified fastify/create-post-link/server.js
100644 → 100755
Empty file.
Empty file modified fastify/create-price-alert/server.js
100644 → 100755
Empty file.
Empty file modified fastify/create-strategy/server.js
100644 → 100755
Empty file.
Empty file modified fastify/create-watchlist/server.js
100644 → 100755
Empty file.
Empty file modified fastify/delete-comment/server.js
100644 → 100755
Empty file.
Empty file modified fastify/delete-post/server.js
100644 → 100755
Empty file.
Empty file modified fastify/delete-price-alert/server.js
100644 → 100755
Empty file.
Empty file modified fastify/delete-strategy/server.js
100644 → 100755
Empty file.
Empty file modified fastify/delete-watchlist/server.js
100644 → 100755
Empty file.
Empty file modified fastify/downvote-comment/server.js
100644 → 100755
Empty file.
Empty file modified fastify/downvote/server.js
100644 → 100755
Empty file.
Empty file modified fastify/edit-name-watchlist/server.js
100644 → 100755
Empty file.
Empty file modified fastify/feedback/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-all-comments/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-community-stats/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-moderators/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-notifications/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-one-post/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-portfolio-data/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-portfolio/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-post/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-price-alert/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-strategy/server.js
100644 → 100755
Empty file.
8 changes: 5 additions & 3 deletions fastify/get-twitch-status/server.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
module.exports = function (fastify, opts, done) {
const axios = opts.axios;

const twitchAPIKey = opts.twitchAPIKey;
const twitchSecretKey = opts.twitchSecretKey;

fastify.get('/get-twitch-status', async (request, reply) => {
let twitchStatus = false;

const client_id = '5i041m3iztxuj0yx26scgzhri1etfi';
const client_secret = '8p9gdmglz23lyc2nsrpbym5tpp15w0';
const client_id = twitchAPIKey;
const client_secret = twitchSecretKey;
const streamer_name = 'stocknear';

try {
Expand Down
Empty file modified fastify/get-user-data/server.js
100644 → 100755
Empty file.
Empty file modified fastify/get-user-stats/server.js
100644 → 100755
Empty file.
Empty file modified fastify/leaderboard/server.js
100644 → 100755
Empty file.
Empty file modified fastify/mixpanel/server.js
100644 → 100755
Empty file.
2,981 changes: 626 additions & 2,355 deletions fastify/package-lock.json

Large diffs are not rendered by default.

20 changes: 9 additions & 11 deletions fastify/package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@
"start": "nodemon app.js"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.460.0",
"@fastify/cors": "^8.5.0",
"@fastify/websocket": "^8.2.0",
"aws-sdk": "^2.1505.0",
"axios": "^1.6.2",
"@fastify/cors": "^9.0.1",
"@fastify/websocket": "^10.0.1",
"axios": "^1.7.2",
"blob-util": "^2.0.2",
"cheerio": "^1.0.0-rc.12",
"dotenv": "^16.4.5",
"fastify": "^4.26.0",
"fastify": "^4.27.0",
"got": "^11.8.3",
"https": "^1.0.0",
"mixpanel": "^0.18.0",
"object-to-formdata": "^4.5.1",
"pino": "^8.19.0",
"pocketbase": "^0.19.0",
"sharp": "^0.32.6",
"pino": "^9.1.0",
"pocketbase": "^0.21.2",
"sharp": "^0.33.4",
"ua-parser-js": "^1.0.37",
"ws": "^8.14.2"
"ws": "^8.17.0"
},
"devDependencies": {
"nodemon": "^3.0.1"
"nodemon": "^3.1.1"
}
}
Empty file modified fastify/save-strategy/server.js
100644 → 100755
Empty file.
Empty file modified fastify/sell-stock/server.js
100644 → 100755
Empty file.
Empty file modified fastify/update-notifications/server.js
100644 → 100755
Empty file.
Empty file modified fastify/update-watchlist/server.js
100644 → 100755
Empty file.
Empty file modified fastify/upvote-comment/server.js
100644 → 100755
Empty file.
Empty file modified fastify/upvote/server.js
100644 → 100755
Empty file.
Empty file modified requirements.txt
100644 → 100755
Empty file.

0 comments on commit fd97c14

Please sign in to comment.