Repository navigation
Update CNQ.csv to the Canadian Securities Exchange list - #274
Merged
Merged
Conversation
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.
This was referenced Nov 29, 2026
Closed
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings
database/equities/CNQ.csvin line with the Canadian Securities Exchange's own list of listed securities, from the update @morrison12 contributed in #273.Closes #273
Changes
Symbols follow the existing convention: CSE's
BTC.PR.AisBTC-PA.CN,.Xand.Uclasses become-Xand-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 asNAHF.PR.A. All 157 website changes match it (BTC-PA.CN, the Bluesky Digital Assets preferredBTC.PR.A, takes the company site CSE lists for that line).Checks
test_search_instruments_across_asset_classes, fails onmaintoo: 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.