feat: Enhance Monte Carlo simulation with minute-level data aggregation
This commit is contained in:
parent
bb54f9a159
commit
7910da0430
@ -203,12 +203,12 @@ def monte_carlo_page():
|
|||||||
if st.button("Run Simulation"):
|
if st.button("Run Simulation"):
|
||||||
with st.spinner('Running Monte Carlo simulation...'):
|
with st.spinner('Running Monte Carlo simulation...'):
|
||||||
try:
|
try:
|
||||||
# Get historical data
|
# Get minute-level historical data
|
||||||
df = get_stock_data(
|
df = get_stock_data(
|
||||||
ticker,
|
ticker,
|
||||||
datetime.combine(start_date, datetime.min.time()),
|
datetime.combine(start_date, datetime.min.time()),
|
||||||
datetime.combine(end_date, datetime.min.time()),
|
datetime.combine(end_date, datetime.min.time()),
|
||||||
'daily'
|
'1m' # Get minute data
|
||||||
)
|
)
|
||||||
|
|
||||||
if df.empty:
|
if df.empty:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user