Skip to content

feature: recognise equity tape letters S/V/H/U and add NASDAQ_SC#9422

Merged
Romazes merged 4 commits into
QuantConnect:masterfrom
Romazes:feature-add-equity-exchanges
Apr 21, 2026
Merged

feature: recognise equity tape letters S/V/H/U and add NASDAQ_SC#9422
Romazes merged 4 commits into
QuantConnect:masterfrom
Romazes:feature-add-equity-exchanges

Conversation

@Romazes
Copy link
Copy Markdown
Collaborator

@Romazes Romazes commented Apr 20, 2026

Description

Extend the equity branch of Exchanges.GetPrimaryExchange to recognise tape letters that previously fell through to Exchange.UNKNOWN (or to a long-form alias only), add NASDAQ_SC (and NASDAQ_INT) as new Exchange entries, and fix the copy-paste typo in Exchange.MEMX's description.

Code Maps to Previous behaviour
S NASDAQ_SC UNKNOWN
V IEX only long-form "IEX" recognised
H MIAX_PEARL UNKNOWN
U MEMX UNKNOWN

Exchange.NASDAQ_INT is added as a class entry for direct reference; the "T" tape letter continues to route to Exchange.NASDAQ for backward compatibility.

Motivation and Context

Brokerage and market-data feeds emit these tape letters in primary-exchange fields, but the equity switch in GetPrimaryExchange did not cover them.

Evidence for each mapping
Code Exchange Sources
S NASDAQ SC (NASDAQ Small Cap, renamed "Nasdaq Capital Market" in 2006) thinkorswim Exchange Codes (link); Nasdaq IR "NASDAQ SmallCap Market is Renamed NASDAQ Capital Market" (link)
V IEX (Investors Exchange, MIC IEXG) dxFeed (link); UTP Vendor Alert 2015-18 (link); NYSE Daily TAQ Client Spec Appendix F (doc)
H MIAX Pearl Exchange dxFeed (link); NYSE Daily TAQ Client Spec Appendix F (doc); Alpaca PR#57
U Members Exchange (MEMX) dxFeed (link); NYSE Daily TAQ Client Spec Appendix F (doc); Alpaca PR#57

Requires Documentation Change

No

How Has This Been Tested?

Extended Tests/Common/ExchangeTest.cs:

  • ExchangeCorrectlyReturnedAsSingleLetter — round-trip [TestCase] for NASDAQ_SC.
  • ExchangeCases — new rows for SNASDAQ_SC, HMIAX_PEARL, VIEX, UMEMX.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • Code follows project style.
  • Tests added.
  • All tests pass locally.

- map primary exchange codes S and T to new NASDAQ tier exchanges
- T was previously folded into NASDAQ, now returns NASDAQ_INT
- add V as alias for IEX in equity switch
- fix MEMX description (was copy of LTSE)
@Romazes Romazes requested a review from Martin-Molinero April 20, 2026 22:34
@Romazes Romazes self-assigned this Apr 20, 2026
Remove the separate NASDAQ_INT mapping in GetPrimaryExchange and map
exchange code "T" to NASDAQ_SC. Update ExchangeTest cases accordingly
and add coverage for IEX ("V") and MEMX ("U").
@Romazes Romazes changed the title feature: add NASDAQ_SC and NASDAQ_INT equity exchanges feature: recognise equity tape letters S/V/H/U and add NASDAQ_SC Apr 21, 2026
Drop the NASDAQ_INT class entry from Exchange.cs. The "T" tape letter
already routes to Exchange.NASDAQ via GetPrimaryExchange, leaving the
class definition unreachable and inconsistent.
Copy link
Copy Markdown
Member

@Martin-Molinero Martin-Molinero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Romazes Romazes merged commit ed8e454 into QuantConnect:master Apr 21, 2026
8 of 9 checks passed
@Romazes Romazes deleted the feature-add-equity-exchanges branch April 21, 2026 20:27
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.

2 participants