File size: 777 Bytes
cd84626
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
29
30
import requests
import streamlit as st
import yfinance as yf
import streamlit.components.v1 as components
from requests_html import HTMLSession




st.set_page_config('Crypto',":moneybag:","wide",menu_items={'About': "This is an *extremely* cool app!"})



menu=['Chart']
ch=st.sidebar.selectbox('Menu',menu)

if ch== 'Chart':
    with st.container():
        list_asset = ['BTC-USD', 'ETH-USD', 'DOGE-USD']
        ms = st.multiselect('choose asset', list_asset)
        dates1 = st.date_input('from')
        dates2 = st.date_input('to')
        st.write('---')

    if len(ms) > 0:
        with st.container():
            df = yf.download(ms, dates1, dates2)
            st.write(df)
            df2 = yf.download(ms, dates1, dates2)['Close']
            st.line_chart(df2)