Dmitry Beresnev
commited on
Commit
·
4236398
1
Parent(s):
7b70d02
fix main
Browse files- app/main.py +4 -4
app/main.py
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
import plotly.graph_objects as go
|
| 4 |
-
from
|
| 5 |
from dotenv import load_dotenv
|
| 6 |
import os
|
| 7 |
|
|
|
|
| 8 |
load_dotenv()
|
| 9 |
token = os.getenv("OPENBB_TOKEN")
|
| 10 |
-
if token:
|
| 11 |
-
openbb.account.login(token)
|
| 12 |
|
| 13 |
-
|
|
|
|
| 14 |
|
| 15 |
symbol = st.text_input("Ticker", "AAPL")
|
| 16 |
period = st.slider("SMA/EMA/RSI period", 5, 50, 20)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
import plotly.graph_objects as go
|
| 4 |
+
from openbb import openbb
|
| 5 |
from dotenv import load_dotenv
|
| 6 |
import os
|
| 7 |
|
| 8 |
+
|
| 9 |
load_dotenv()
|
| 10 |
token = os.getenv("OPENBB_TOKEN")
|
|
|
|
|
|
|
| 11 |
|
| 12 |
+
|
| 13 |
+
st.title("TradingView + Tech Indicators Dashboard")
|
| 14 |
|
| 15 |
symbol = st.text_input("Ticker", "AAPL")
|
| 16 |
period = st.slider("SMA/EMA/RSI period", 5, 50, 20)
|