Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions OpenBBxStreamlit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import streamlit as st
import pandas as pd
from openbb_terminal.sdk import openbb
from openbb_terminal.sdk import TerminalStyle

openbb.keys.fred(key = '9cbe93cd8132301fd46ad5e755944df0', persist = True)
TerminalStyle().applyMPLstyle()
st.set_page_config(
Expand Down Expand Up @@ -175,11 +177,11 @@ def color_negative_red(val):
st.subheader('Vol Surface of {}'.format(text_input))
st.pyplot(openbb.stocks.options.vsurf_chart(symbol=text_input))

col1, col2, col3 = st.columns([30,30,30])
with col1:
st.write
with col2:
st.pyplot(openbb.stocks.gov.gtrades_chart(symbol=text_input, gov_type = 'congress'))
col1, col2, col3 = st.columns([30,30,30])
with col1:
st.write
with col2:
st.pyplot(openbb.stocks.gov.gtrades_chart(symbol=text_input, gov_type = 'congress'))

with col3:
st.pyplot(openbb.stocks.gov.gtrades_chart(symbol=text_input, gov_type = 'congress'))
with col3:
st.pyplot(openbb.stocks.gov.gtrades_chart(symbol=text_input, gov_type = 'congress'))
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ streamlit
pandas
openbb==3.0.0
plotly
arch