Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
def main():
|
4 |
+
st.title("Self-Regulatory Organization (SRO) Rulemaking Process")
|
5 |
+
st.write("Welcome to the SRO Rulemaking Process Simulation!")
|
6 |
+
|
7 |
+
# Display information about the SEC inviting comments on SRO filings
|
8 |
+
st.header("1. SEC Invites Comments on SRO Filings")
|
9 |
+
st.write("The Securities and Exchange Commission (SEC) invites comments on filings submitted by SROs during the comment period.")
|
10 |
+
|
11 |
+
# Display information about Joint Industry Plans
|
12 |
+
st.header("2. Joint Industry Plans")
|
13 |
+
st.write("Joint Industry Plans include:")
|
14 |
+
joint_industry_plans = [
|
15 |
+
{"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"},
|
16 |
+
{"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"}
|
17 |
+
]
|
18 |
+
joint_industry_plans_table = "| Plan | Rules | Search | Downloads |\n|------|-------|--------|-----------|\n"
|
19 |
+
for plan in joint_industry_plans:
|
20 |
+
joint_industry_plans_table += f"| {plan['name']} | [π]({plan['rules_link']}) | [π]({plan['search_link']}) | [π₯]({plan['downloads_link']}) |\n"
|
21 |
+
st.markdown(joint_industry_plans_table)
|
22 |
+
|
23 |
+
# Display information about National Securities Exchanges
|
24 |
+
st.header("3. National Securities Exchanges")
|
25 |
+
st.write("National Securities Exchanges include:")
|
26 |
+
exchanges = [
|
27 |
+
{"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"},
|
28 |
+
{"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"},
|
29 |
+
{"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"},
|
30 |
+
{"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"}
|
31 |
+
]
|
32 |
+
exchanges_table = "| Exchange | Rules | Search | Downloads |\n|----------|-------|--------|-----------|\n"
|
33 |
+
for exchange in exchanges:
|
34 |
+
exchanges_table += f"| {exchange['name']} | [π]({exchange['rules_link']}) | [π]({exchange['search_link']}) | [π₯]({exchange['downloads_link']}) |\n"
|
35 |
+
st.markdown(exchanges_table)
|
36 |
+
|
37 |
+
# Display information about Registered Securities Associations
|
38 |
+
st.header("4. Registered Securities Associations")
|
39 |
+
st.write("Registered Securities Associations include:")
|
40 |
+
securities_associations = [
|
41 |
+
{"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"}
|
42 |
+
]
|
43 |
+
securities_associations_table = "| Association | Rules | Search | Downloads |\n|-------------|-------|--------|-----------|\n"
|
44 |
+
for association in securities_associations:
|
45 |
+
securities_associations_table += f"| {association['name']} | [π]({association['rules_link']}) | [π]({association['search_link']}) | [π₯]({association['downloads_link']}) |\n"
|
46 |
+
st.markdown(securities_associations_table)
|
47 |
+
|
48 |
+
# Display information about Notice Registered Security Futures Product Exchanges
|
49 |
+
st.header("5. Notice Registered Security Futures Product Exchanges")
|
50 |
+
st.write("Notice Registered Security Futures Product Exchanges include:")
|
51 |
+
futures_exchanges = [
|
52 |
+
{"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"},
|
53 |
+
{"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"},
|
54 |
+
{"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"}
|
55 |
+
]
|
56 |
+
futures_exchanges_table = "| Exchange | Rules | Search | Downloads |\n|----------|-------|--------|-----------|\n"
|
57 |
+
for exchange in futures_exchanges:
|
58 |
+
futures_exchanges_table += f"| {exchange['name']} | [π]({exchange['rules_link']}) | [π]({exchange['search_link']}) | [π₯]({exchange['downloads_link']}) |\n"
|
59 |
+
st.markdown(futures_exchanges_table)
|
60 |
+
|
61 |
+
# Display information about Securities Futures Associations
|
62 |
+
st.header("6. Securities Futures Associations")
|
63 |
+
st.write("The National Futures Association (NFA) is listed under Securities Futures Associations.")
|
64 |
+
securities_futures_associations = [
|
65 |
+
{"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"}
|
66 |
+
]
|
67 |
+
securities_futures_associations_table = "| Association | Rules | Search | Downloads |\n|-------------|-------|--------|-----------|\n"
|
68 |
+
for association in securities_futures_associations:
|
69 |
+
securities_futures_associations_table += f"| {association['name']} | [π]({association['rules_link']}) | [π]({association['search_link']}) | [π₯]({association['downloads_link']}) |\n"
|
70 |
+
st.markdown(securities_futures_associations_table)
|
71 |
+
|
72 |
+
# Display information about Registered Clearing Agencies
|
73 |
+
st.header("7. Registered Clearing Agencies")
|
74 |
+
st.write("Registered Clearing Agencies are divided into two categories:")
|
75 |
+
st.write("a. Proposed Rule Change Filings:")
|
76 |
+
proposed_rule_change_filings = [
|
77 |
+
{"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"},
|
78 |
+
{"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"}
|
79 |
+
]
|
80 |
+
proposed_rule_change_filings_table = "| Entity | Rules | Search | Downloads |\n|--------|-------|--------|-----------|\n"
|
81 |
+
for entity in proposed_rule_change_filings:
|
82 |
+
proposed_rule_change_filings_table += f"| {entity['name']} | [π]({entity['rules_link']}) | [π]({entity['search_link']}) | [π₯]({entity['downloads_link']}) |\n"
|
83 |
+
st.markdown(proposed_rule_change_filings_table)
|
84 |
+
|
85 |
+
st.write("b. Advance Notice Filings:")
|
86 |
+
advance_notice_filings = [
|
87 |
+
{"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"},
|
88 |
+
{"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"},
|
89 |
+
{"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"},
|
90 |
+
{"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"}
|
91 |
+
]
|
92 |
+
advance_notice_filings_table = "| Entity | Rules | Search | Downloads |\n|--------|-------|--------|-----------|\n"
|
93 |
+
for entity in advance_notice_filings:
|
94 |
+
advance_notice_filings_table += f"| {entity['name']} | [π]({entity['rules_link']}) | [π]({entity['search_link']}) | [π₯]({entity['downloads_link']}) |\n"
|
95 |
+
st.markdown(advance_notice_filings_table)
|
96 |
+
|
97 |
+
# Display information about Other Self-Regulatory Organizations
|
98 |
+
st.header("8. Other Self-Regulatory Organizations")
|
99 |
+
st.write("The Municipal Securities Rulemaking Board (MSRB) is listed under Other Self-Regulatory Organizations.")
|
100 |
+
other_sros = [
|
101 |
+
{"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"}
|
102 |
+
]
|
103 |
+
other_sros_table = "| Organization | Rules | Search | Downloads |\n|--------------|-------|--------|-----------|\n"
|
104 |
+
for sro in other_sros:
|
105 |
+
other_sros_table += f"| {sro['name']} | [π]({sro['rules_link']}) | [π]({sro['search_link']}) | [π₯]({sro['downloads_link']}) |\n"
|
106 |
+
st.markdown(other_sros_table)
|
107 |
+
|
108 |
+
st.write("---")
|
109 |
+
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.")
|
110 |
+
|
111 |
+
if __name__ == "__main__":
|
112 |
+
main()
|