Skip to content

Update CNQ.csv to the Canadian Securities Exchange list - #274

Merged
JerBouma merged 1 commit into
mainfrom
feature/cse-listings-273
Nov 29, 2026
Merged

JerBouma merged 1 commit into
mainfrom
feature/cse-listings-273

Conversation

@JerBouma

@JerBouma JerBouma commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Brings database/equities/CNQ.csv in line with the Canadian Securities Exchange's own list of listed securities, from the update @morrison12 contributed in #273.

Closes #273

Changes

  • 382 shares added that CSE lists and the database didn't have: 318 trading, 47 suspended and 16 halted pending a fundamental change (still listed, so not delisted), plus NAHF's preferred share (NAHF-PA.CN). Warrants, the debenture and the two ETFs on the list are left out.
  • 56 symbols marked delisted: 54 no longer on CSE's list and 2 that CSE lists with status Delisted.
  • 30 symbols listed again: CSE lists them (4 trading, 23 suspended, 3 halted), so the delisted flag is cleared.
  • 157 websites updated to the company website CSE lists, except where only a trailing slash differed and for six companies whose new site didn't load.

Symbols follow the existing convention: CSE's BTC.PR.A is BTC-PA.CN, .X and .U classes become -X and -U.

Categories

The contribution gave every new company one fixed category per CSE sector. That holds for mining, but not for CSE's broader sectors: "Diversified Industries" became Capital Markets for every company in it, including health and marketing companies. I applied the rule the weekly listings update uses for exchange sector labels instead: a label maps to a combination only when at least 90% of at least 10 existing rows with that label agree. Only "Mining" qualifies (Materials / Basic Materials / Mining & Metals, the same combination as in the contribution), so the 208 mining companies keep their categories and the other 174 are left blank until a source gives them.

Source

Every listing, status and website is checked against CSE's public security list, the data behind thecse.com/listings (webapi-backup.thecse.com/trading/listed/market/security_maintenance.json, as of 27 November 2026). 381 of the 382 added symbols appear on it by symbol, and NAHF-PA.CN as NAHF.PR.A. All 157 website changes match it (BTC-PA.CN, the Bluesky Digital Assets preferred BTC.PR.A, takes the company site CSE lists for that line).

Checks

  • Categories valid, 0 non-shares, identifiers 0 issues.
  • pytest: 441 passed. The one failure, test_search_instruments_across_asset_classes, fails on main too: the SIX ETF BBIT.SW ("Bitcoin Fund ETF") added on 28 November now ranks above BTC-USD in the MCP search for "bitcoin". That is unrelated to this file.

Users see these rows after merge and CI.

Add 382 listed shares, mark 56 symbols no longer listed as delisted, clear the
flag on 30 that are listed again and update 157 websites to the ones CSE lists.
@JerBouma
JerBouma merged commit ce3325b into main Nov 29, 2026
11 of 12 checks passed
@JerBouma
JerBouma deleted the feature/cse-listings-273 branch November 29, 2026 22:21
@morrison12

Copy link
Copy Markdown

The contribution gave every new company one fixed category per CSE sector.
Oops. Indeed that can be done only for mining.. Won't do that again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DATA]

2 participants