forked from Stockplot/api-middleware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
28 lines (24 loc) · 659 Bytes
/
app.py
File metadata and controls
28 lines (24 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import yfinance as yf
import pandas as pd
import numpy as np
from flask import Flask
from flask import request
from flask import json
from flask import jsonify
from flask_cors import CORS, cross_origin
from decimal import Decimal
from routes.OHLC import OHLC
from routes.BollingerBands import BB
from routes.RSI import RSI
from routes.MACD import MACD
from routes.GoldenCross import GC
app = Flask(__name__)
cors = CORS(app)
app.config["CORS_HEADERS"] = "Content-Type"
app.register_blueprint(OHLC)
app.register_blueprint(BB)
app.register_blueprint(RSI)
app.register_blueprint(MACD)
app.register_blueprint(GC)
if __name__ == "__main__":
app.run()