update endpoint
This commit is contained in:
parent
dbe0c21898
commit
fd97c14b98
0
.gitattributes
vendored
Normal file → Executable file
0
.gitattributes
vendored
Normal file → Executable file
0
.github/workflows/main.yml
vendored
Normal file → Executable file
0
.github/workflows/main.yml
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
app/GetStartEndDate.py
Normal file → Executable file
0
app/GetStartEndDate.py
Normal file → Executable file
0
app/create_crypto_db.py
Normal file → Executable file
0
app/create_crypto_db.py
Normal file → Executable file
0
app/create_etf_db.py
Normal file → Executable file
0
app/create_etf_db.py
Normal file → Executable file
0
app/create_institute_db.py
Normal file → Executable file
0
app/create_institute_db.py
Normal file → Executable file
0
app/create_stock_db.py
Normal file → Executable file
0
app/create_stock_db.py
Normal file → Executable file
0
app/cron_analyst_db.py
Normal file → Executable file
0
app/cron_analyst_db.py
Normal file → Executable file
0
app/cron_analyst_ticker.py
Normal file → Executable file
0
app/cron_analyst_ticker.py
Normal file → Executable file
0
app/cron_bull_bear_say.py
Normal file → Executable file
0
app/cron_bull_bear_say.py
Normal file → Executable file
0
app/cron_congress_trading.py
Normal file → Executable file
0
app/cron_congress_trading.py
Normal file → Executable file
0
app/cron_enterprise_values.py
Normal file → Executable file
0
app/cron_enterprise_values.py
Normal file → Executable file
0
app/cron_executive.py
Normal file → Executable file
0
app/cron_executive.py
Normal file → Executable file
0
app/cron_fundamental_predictor.py
Normal file → Executable file
0
app/cron_fundamental_predictor.py
Normal file → Executable file
0
app/cron_heatmap.py
Normal file → Executable file
0
app/cron_heatmap.py
Normal file → Executable file
0
app/cron_historical_price.py
Normal file → Executable file
0
app/cron_historical_price.py
Normal file → Executable file
0
app/cron_insider_trading.py
Normal file → Executable file
0
app/cron_insider_trading.py
Normal file → Executable file
0
app/cron_market_movers.py
Normal file → Executable file
0
app/cron_market_movers.py
Normal file → Executable file
0
app/cron_market_news.py
Normal file → Executable file
0
app/cron_market_news.py
Normal file → Executable file
0
app/cron_one_day_price.py
Normal file → Executable file
0
app/cron_one_day_price.py
Normal file → Executable file
0
app/cron_options_bubble.py
Normal file → Executable file
0
app/cron_options_bubble.py
Normal file → Executable file
0
app/cron_options_flow.py
Normal file → Executable file
0
app/cron_options_flow.py
Normal file → Executable file
0
app/cron_options_zero_dte.py
Normal file → Executable file
0
app/cron_options_zero_dte.py
Normal file → Executable file
0
app/cron_portfolio.py
Normal file → Executable file
0
app/cron_portfolio.py
Normal file → Executable file
0
app/cron_price_alert.py
Normal file → Executable file
0
app/cron_price_alert.py
Normal file → Executable file
0
app/cron_price_analysis.py
Normal file → Executable file
0
app/cron_price_analysis.py
Normal file → Executable file
0
app/cron_quote.py
Normal file → Executable file
0
app/cron_quote.py
Normal file → Executable file
0
app/cron_sec_filings.py
Normal file → Executable file
0
app/cron_sec_filings.py
Normal file → Executable file
0
app/cron_sentiment_analysis.py
Normal file → Executable file
0
app/cron_sentiment_analysis.py
Normal file → Executable file
0
app/cron_similar_stocks.py
Normal file → Executable file
0
app/cron_similar_stocks.py
Normal file → Executable file
0
app/cron_stockdeck.py
Normal file → Executable file
0
app/cron_stockdeck.py
Normal file → Executable file
0
app/cron_ta_rating.py
Normal file → Executable file
0
app/cron_ta_rating.py
Normal file → Executable file
0
app/cron_top_etf_holder.py
Normal file → Executable file
0
app/cron_top_etf_holder.py
Normal file → Executable file
0
app/cron_trend_analysis.py
Normal file → Executable file
0
app/cron_trend_analysis.py
Normal file → Executable file
0
app/cron_var.py
Normal file → Executable file
0
app/cron_var.py
Normal file → Executable file
0
app/cron_wiim.py
Normal file → Executable file
0
app/cron_wiim.py
Normal file → Executable file
0
app/financial_modeling_prep.py
Normal file → Executable file
0
app/financial_modeling_prep.py
Normal file → Executable file
0
app/html_template/price_alert.html
Normal file → Executable file
0
app/html_template/price_alert.html
Normal file → Executable file
0
app/main.py
Normal file → Executable file
0
app/main.py
Normal file → Executable file
0
app/market_movers.py
Normal file → Executable file
0
app/market_movers.py
Normal file → Executable file
0
app/ml_models/__pycache__/backtesting.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/__pycache__/backtesting.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/__pycache__/classification.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/__pycache__/classification.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/__pycache__/fundamental_predictor.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/__pycache__/fundamental_predictor.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/__pycache__/prophet.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/__pycache__/prophet.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/__pycache__/prophet_model.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/__pycache__/prophet_model.cpython-310.pyc
Normal file → Executable file
0
app/ml_models/backtesting.py
Normal file → Executable file
0
app/ml_models/backtesting.py
Normal file → Executable file
0
app/ml_models/classification.py
Normal file → Executable file
0
app/ml_models/classification.py
Normal file → Executable file
0
app/ml_models/fundamental_predictor.py
Normal file → Executable file
0
app/ml_models/fundamental_predictor.py
Normal file → Executable file
0
app/ml_models/lstm.py
Normal file → Executable file
0
app/ml_models/lstm.py
Normal file → Executable file
0
app/ml_models/prophet_model.py
Normal file → Executable file
0
app/ml_models/prophet_model.py
Normal file → Executable file
0
app/ml_models/regression.py
Normal file → Executable file
0
app/ml_models/regression.py
Normal file → Executable file
0
app/ml_models/test.py
Normal file → Executable file
0
app/ml_models/test.py
Normal file → Executable file
0
app/ml_models/test2.py
Normal file → Executable file
0
app/ml_models/test2.py
Normal file → Executable file
0
app/primary_cron_job.py
Normal file → Executable file
0
app/primary_cron_job.py
Normal file → Executable file
0
app/rating.py
Normal file → Executable file
0
app/rating.py
Normal file → Executable file
0
app/restart_json.py
Normal file → Executable file
0
app/restart_json.py
Normal file → Executable file
0
app/secondary_cron_job.py
Normal file → Executable file
0
app/secondary_cron_job.py
Normal file → Executable file
0
app/stats.py
Normal file → Executable file
0
app/stats.py
Normal file → Executable file
0
app/ta_signal.py
Normal file → Executable file
0
app/ta_signal.py
Normal file → Executable file
0
app/trade_signal.py
Normal file → Executable file
0
app/trade_signal.py
Normal file → Executable file
0
app/twitter.py
Normal file → Executable file
0
app/twitter.py
Normal file → Executable file
0
fastify/all-strategies/server.js
Normal file → Executable file
0
fastify/all-strategies/server.js
Normal file → Executable file
0
fastify/all-watchlists/server.js
Normal file → Executable file
0
fastify/all-watchlists/server.js
Normal file → Executable file
4
fastify/app.js
Normal file → Executable file
4
fastify/app.js
Normal file → Executable file
@ -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');
|
||||
@ -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 });
|
||||
|
||||
0
fastify/buy-stock/server.js
Normal file → Executable file
0
fastify/buy-stock/server.js
Normal file → Executable file
0
fastify/create-portfolio/server.js
Normal file → Executable file
0
fastify/create-portfolio/server.js
Normal file → Executable file
0
fastify/create-post-image/server.js
Normal file → Executable file
0
fastify/create-post-image/server.js
Normal file → Executable file
0
fastify/create-post-link/server.js
Normal file → Executable file
0
fastify/create-post-link/server.js
Normal file → Executable file
0
fastify/create-price-alert/server.js
Normal file → Executable file
0
fastify/create-price-alert/server.js
Normal file → Executable file
0
fastify/create-strategy/server.js
Normal file → Executable file
0
fastify/create-strategy/server.js
Normal file → Executable file
0
fastify/create-watchlist/server.js
Normal file → Executable file
0
fastify/create-watchlist/server.js
Normal file → Executable file
0
fastify/delete-comment/server.js
Normal file → Executable file
0
fastify/delete-comment/server.js
Normal file → Executable file
0
fastify/delete-post/server.js
Normal file → Executable file
0
fastify/delete-post/server.js
Normal file → Executable file
0
fastify/delete-price-alert/server.js
Normal file → Executable file
0
fastify/delete-price-alert/server.js
Normal file → Executable file
0
fastify/delete-strategy/server.js
Normal file → Executable file
0
fastify/delete-strategy/server.js
Normal file → Executable file
0
fastify/delete-watchlist/server.js
Normal file → Executable file
0
fastify/delete-watchlist/server.js
Normal file → Executable file
0
fastify/downvote-comment/server.js
Normal file → Executable file
0
fastify/downvote-comment/server.js
Normal file → Executable file
0
fastify/downvote/server.js
Normal file → Executable file
0
fastify/downvote/server.js
Normal file → Executable file
0
fastify/edit-name-watchlist/server.js
Normal file → Executable file
0
fastify/edit-name-watchlist/server.js
Normal file → Executable file
0
fastify/feedback/server.js
Normal file → Executable file
0
fastify/feedback/server.js
Normal file → Executable file
0
fastify/get-all-comments/server.js
Normal file → Executable file
0
fastify/get-all-comments/server.js
Normal file → Executable file
0
fastify/get-community-stats/server.js
Normal file → Executable file
0
fastify/get-community-stats/server.js
Normal file → Executable file
0
fastify/get-moderators/server.js
Normal file → Executable file
0
fastify/get-moderators/server.js
Normal file → Executable file
0
fastify/get-notifications/server.js
Normal file → Executable file
0
fastify/get-notifications/server.js
Normal file → Executable file
0
fastify/get-one-post/server.js
Normal file → Executable file
0
fastify/get-one-post/server.js
Normal file → Executable file
0
fastify/get-portfolio-data/server.js
Normal file → Executable file
0
fastify/get-portfolio-data/server.js
Normal file → Executable file
0
fastify/get-portfolio/server.js
Normal file → Executable file
0
fastify/get-portfolio/server.js
Normal file → Executable file
0
fastify/get-post/server.js
Normal file → Executable file
0
fastify/get-post/server.js
Normal file → Executable file
0
fastify/get-price-alert/server.js
Normal file → Executable file
0
fastify/get-price-alert/server.js
Normal file → Executable file
0
fastify/get-strategy/server.js
Normal file → Executable file
0
fastify/get-strategy/server.js
Normal file → Executable file
6
fastify/get-twitch-status/server.js
Normal file → Executable file
6
fastify/get-twitch-status/server.js
Normal file → Executable file
@ -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 {
|
||||
|
||||
0
fastify/get-user-data/server.js
Normal file → Executable file
0
fastify/get-user-data/server.js
Normal file → Executable file
0
fastify/get-user-stats/server.js
Normal file → Executable file
0
fastify/get-user-stats/server.js
Normal file → Executable file
0
fastify/leaderboard/server.js
Normal file → Executable file
0
fastify/leaderboard/server.js
Normal file → Executable file
0
fastify/mixpanel/server.js
Normal file → Executable file
0
fastify/mixpanel/server.js
Normal file → Executable file
3097
fastify/package-lock.json
generated
3097
fastify/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user