awacke1's picture
Create app.py
bbca525 verified
import streamlit as st
def main():
st.title("Self-Regulatory Organization (SRO) Rulemaking Process")
st.write("Welcome to the SRO Rulemaking Process Simulation!")
# Display information about the SEC inviting comments on SRO filings
st.header("1. SEC Invites Comments on SRO Filings")
st.write("The Securities and Exchange Commission (SEC) invites comments on filings submitted by SROs during the comment period.")
# Display information about Joint Industry Plans
st.header("2. Joint Industry Plans")
st.write("Joint Industry Plans include:")
joint_industry_plans = [
{"name": "17d-2 Plans for Allocation of Regulatory Responsibilities", "rules_link": "https://www.sec.gov/rules/sro.shtml", "search_link": "https://www.sec.gov/rules/sro.shtml#17d2plans", "downloads_link": "https://www.sec.gov/rules/sro/nms.htm"},
{"name": "National Market System Plans (NMS)", "rules_link": "https://www.sec.gov/rules/sro/nms.htm", "search_link": "https://www.sec.gov/rules/sro/nms.htm", "downloads_link": "https://www.sec.gov/rules/sro/nms.htm"}
]
joint_industry_plans_table = "| Plan | Rules | Search | Downloads |\n|------|-------|--------|-----------|\n"
for plan in joint_industry_plans:
joint_industry_plans_table += f"| {plan['name']} | [πŸ“œ]({plan['rules_link']}) | [πŸ”]({plan['search_link']}) | [πŸ“₯]({plan['downloads_link']}) |\n"
st.markdown(joint_industry_plans_table)
# Display information about National Securities Exchanges
st.header("3. National Securities Exchanges")
st.write("National Securities Exchanges include:")
exchanges = [
{"name": "BOX Exchange LLC", "rules_link": "https://www.sec.gov/rules/sro/box.htm", "search_link": "https://www.sec.gov/rules/sro/box.htm", "downloads_link": "https://www.sec.gov/rules/sro/box.htm"},
{"name": "Cboe BYX Exchange, Inc.", "rules_link": "https://www.sec.gov/rules/sro/cboebyx.htm", "search_link": "https://www.sec.gov/rules/sro/cboebyx.htm", "downloads_link": "https://www.sec.gov/rules/sro/cboebyx.htm"},
{"name": "Cboe BZX Exchange, Inc.", "rules_link": "https://www.sec.gov/rules/sro/cboebzx.htm", "search_link": "https://www.sec.gov/rules/sro/cboebzx.htm", "downloads_link": "https://www.sec.gov/rules/sro/cboebzx.htm"},
{"name": "Cboe C2 Exchange, Inc.", "rules_link": "https://www.sec.gov/rules/sro/cboec2.htm", "search_link": "https://www.sec.gov/rules/sro/cboec2.htm", "downloads_link": "https://www.sec.gov/rules/sro/cboec2.htm"}
]
exchanges_table = "| Exchange | Rules | Search | Downloads |\n|----------|-------|--------|-----------|\n"
for exchange in exchanges:
exchanges_table += f"| {exchange['name']} | [πŸ“œ]({exchange['rules_link']}) | [πŸ”]({exchange['search_link']}) | [πŸ“₯]({exchange['downloads_link']}) |\n"
st.markdown(exchanges_table)
# Display information about Registered Securities Associations
st.header("4. Registered Securities Associations")
st.write("Registered Securities Associations include:")
securities_associations = [
{"name": "Financial Industry Regulatory Authority (FINRA), formerly known as the National Association of Securities Dealers (NASD)", "rules_link": "https://www.sec.gov/rules/sro/finra.htm", "search_link": "https://www.sec.gov/rules/sro/finra.htm", "downloads_link": "https://www.sec.gov/rules/sro/finra.htm"}
]
securities_associations_table = "| Association | Rules | Search | Downloads |\n|-------------|-------|--------|-----------|\n"
for association in securities_associations:
securities_associations_table += f"| {association['name']} | [πŸ“œ]({association['rules_link']}) | [πŸ”]({association['search_link']}) | [πŸ“₯]({association['downloads_link']}) |\n"
st.markdown(securities_associations_table)
# Display information about Notice Registered Security Futures Product Exchanges
st.header("5. Notice Registered Security Futures Product Exchanges")
st.write("Notice Registered Security Futures Product Exchanges include:")
futures_exchanges = [
{"name": "CBOE Futures Exchange", "rules_link": "https://www.sec.gov/rules/sro/cfe.htm", "search_link": "https://www.sec.gov/rules/sro/cfe.htm", "downloads_link": "https://www.sec.gov/rules/sro/cfe.htm"},
{"name": "Chicago Board of Trade", "rules_link": "https://www.sec.gov/rules/sro/cbot.htm", "search_link": "https://www.sec.gov/rules/sro/cbot.htm", "downloads_link": "https://www.sec.gov/rules/sro/cbot.htm"},
{"name": "Chicago Mercantile Exchange", "rules_link": "https://www.sec.gov/rules/sro/cme.htm", "search_link": "https://www.sec.gov/rules/sro/cme.htm", "downloads_link": "https://www.sec.gov/rules/sro/cme.htm"}
]
futures_exchanges_table = "| Exchange | Rules | Search | Downloads |\n|----------|-------|--------|-----------|\n"
for exchange in futures_exchanges:
futures_exchanges_table += f"| {exchange['name']} | [πŸ“œ]({exchange['rules_link']}) | [πŸ”]({exchange['search_link']}) | [πŸ“₯]({exchange['downloads_link']}) |\n"
st.markdown(futures_exchanges_table)
# Display information about Securities Futures Associations
st.header("6. Securities Futures Associations")
st.write("The National Futures Association (NFA) is listed under Securities Futures Associations.")
securities_futures_associations = [
{"name": "National Futures Association (NFA)", "rules_link": "https://www.sec.gov/rules/sro/nfa.htm", "search_link": "https://www.sec.gov/rules/sro/nfa.htm", "downloads_link": "https://www.sec.gov/rules/sro/nfa.htm"}
]
securities_futures_associations_table = "| Association | Rules | Search | Downloads |\n|-------------|-------|--------|-----------|\n"
for association in securities_futures_associations:
securities_futures_associations_table += f"| {association['name']} | [πŸ“œ]({association['rules_link']}) | [πŸ”]({association['search_link']}) | [πŸ“₯]({association['downloads_link']}) |\n"
st.markdown(securities_futures_associations_table)
# Display information about Registered Clearing Agencies
st.header("7. Registered Clearing Agencies")
st.write("Registered Clearing Agencies are divided into two categories:")
st.write("a. Proposed Rule Change Filings:")
proposed_rule_change_filings = [
{"name": "Banque Centrale De Compensation", "rules_link": "https://www.sec.gov/rules/sro/lch.htm", "search_link": "https://www.sec.gov/rules/sro/lch.htm", "downloads_link": "https://www.sec.gov/rules/sro/lch.htm"},
{"name": "Boston Stock Exchange Clearing Corporation", "rules_link": "https://www.sec.gov/rules/sro/bsecc.htm", "search_link": "https://www.sec.gov/rules/sro/bsecc.htm", "downloads_link": "https://www.sec.gov/rules/sro/bsecc.htm"}
]
proposed_rule_change_filings_table = "| Entity | Rules | Search | Downloads |\n|--------|-------|--------|-----------|\n"
for entity in proposed_rule_change_filings:
proposed_rule_change_filings_table += f"| {entity['name']} | [πŸ“œ]({entity['rules_link']}) | [πŸ”]({entity['search_link']}) | [πŸ“₯]({entity['downloads_link']}) |\n"
st.markdown(proposed_rule_change_filings_table)
st.write("b. Advance Notice Filings:")
advance_notice_filings = [
{"name": "The Depository Trust Company", "rules_link": "https://www.sec.gov/rules/sro/dtc-an.htm", "search_link": "https://www.sec.gov/rules/sro/dtc-an.htm", "downloads_link": "https://www.sec.gov/rules/sro/dtc-an.htm"},
{"name": "Fixed Income Clearing Corporation", "rules_link": "https://www.sec.gov/rules/sro/ficc-an.htm", "search_link": "https://www.sec.gov/rules/sro/ficc-an.htm", "downloads_link": "https://www.sec.gov/rules/sro/ficc-an.htm"},
{"name": "National Securities Clearing Corporation", "rules_link": "https://www.sec.gov/rules/sro/nscc-an.htm", "search_link": "https://www.sec.gov/rules/sro/nscc-an.htm", "downloads_link": "https://www.sec.gov/rules/sro/nscc-an.htm"},
{"name": "The Options Clearing Corporation", "rules_link": "https://www.sec.gov/rules/sro/occ-an.htm", "search_link": "https://www.sec.gov/rules/sro/occ-an.htm", "downloads_link": "https://www.sec.gov/rules/sro/occ-an.htm"}
]
advance_notice_filings_table = "| Entity | Rules | Search | Downloads |\n|--------|-------|--------|-----------|\n"
for entity in advance_notice_filings:
advance_notice_filings_table += f"| {entity['name']} | [πŸ“œ]({entity['rules_link']}) | [πŸ”]({entity['search_link']}) | [πŸ“₯]({entity['downloads_link']}) |\n"
st.markdown(advance_notice_filings_table)
# Display information about Other Self-Regulatory Organizations
st.header("8. Other Self-Regulatory Organizations")
st.write("The Municipal Securities Rulemaking Board (MSRB) is listed under Other Self-Regulatory Organizations.")
other_sros = [
{"name": "Municipal Securities Rulemaking Board (MSRB)", "rules_link": "https://www.sec.gov/rules/sro/msrb.htm", "search_link": "https://www.sec.gov/rules/sro/msrb.htm", "downloads_link": "https://www.sec.gov/rules/sro/msrb.htm"}
]
other_sros_table = "| Organization | Rules | Search | Downloads |\n|--------------|-------|--------|-----------|\n"
for sro in other_sros:
other_sros_table += f"| {sro['name']} | [πŸ“œ]({sro['rules_link']}) | [πŸ”]({sro['search_link']}) | [πŸ“₯]({sro['downloads_link']}) |\n"
st.markdown(other_sros_table)
st.write("---")
st.write("This simulation provides a comprehensive list of SROs involved in the rulemaking process and information on how interested parties can submit comments on proposed rule changes.")
if __name__ == "__main__":
main()