Skip to content

Instantly share code, notes, and snippets.

@francesfeng
francesfeng / SessionState.py
Created February 10, 2021 18:29 — forked from tvst/SessionState.py
A possible design for doing per-session persistent state in Streamlit
"""Hack to add per-session state to Streamlit.
Usage
-----
>>> import SessionState
>>>
>>> session_state = SessionState.get(user_name='', favorite_color='black')
>>> session_state.user_name
''
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
ETFs Mutual Funds
Intra-day live price "Yes
Because ETFs trade like stocks, its live price fluctuate as market condition changes. " "No
Mutual fund only publish one price - Net Assets Value, NAV at the close"
Intra-day trading "Yes
You can buy and sell ETFs throughout the day during the exchange opening orders.