Skip to content

Commit 804f25e

Browse files
tdobrowolski1claude
andcommitted
fix(python): SubscriptionTransportMedium lives in QuantConnect, not QC.Data (v0.1.3)
v0.1.2 fixed half the original bug — moved SubscriptionDataSource to its correct namespace QuantConnect.Data. But SubscriptionTransportMedium is in QuantConnect (the parent), not QC.Data. Same silent-no-trades failure mode as v0.1.1. Caught by re-running gamma-scalping Tier 2 smoke after the v0.1.2 bump in flashalpha-historical-examples. LEAN log: cannot import name 'SubscriptionTransportMedium' from 'QuantConnect.Data' File "/root/.local/lib/python3.11/site-packages/flashalpha_quantconnect/data/source.py", line 53 The fix splits the import: from QuantConnect import SubscriptionTransportMedium from QuantConnect.Data import SubscriptionDataSource, FileFormat Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 8f69335 commit 804f25e

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ Initial public release. The bridge ships with full coverage of the FlashAlpha hi
3838
- **Documentation corpus.** Repo-root `README.md` with side-by-side C# + Python examples, `docs/getting-started.md`, `docs/data-types.md` (per-bar field reference for all 17 endpoints), `docs/auth.md`, `docs/troubleshooting.md`, and five `docs/recipes/*.md` cookbooks.
3939
- **`llms.txt`** site map per [llmstxt.org](https://llmstxt.org/).
4040

41-
[Unreleased]: https://github.com/FlashAlpha-lab/flashalpha-quantconnect/compare/v0.1.2...HEAD
41+
[Unreleased]: https://github.com/FlashAlpha-lab/flashalpha-quantconnect/compare/v0.1.3...HEAD
42+
[0.1.3]: https://github.com/FlashAlpha-lab/flashalpha-quantconnect/compare/v0.1.2...v0.1.3
4243
[0.1.2]: https://github.com/FlashAlpha-lab/flashalpha-quantconnect/compare/v0.1.1...v0.1.2
4344
[0.1.1]: https://github.com/FlashAlpha-lab/flashalpha-quantconnect/compare/v0.1.0...v0.1.1
4445
[0.1.0]: https://github.com/FlashAlpha-lab/flashalpha-quantconnect/releases/tag/v0.1.0

src/csharp/FlashAlpha.QuantConnect/FlashAlpha.QuantConnect.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<PackageId>FlashAlpha.QuantConnect</PackageId>
44
<RootNamespace>FlashAlpha.QuantConnect</RootNamespace>
5-
<Version>0.1.2</Version>
5+
<Version>0.1.3</Version>
66
<Authors>FlashAlpha</Authors>
77
<Company>FlashAlpha</Company>
88
<Copyright>Copyright (c) 2026 FlashAlpha</Copyright>

src/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "flashalpha-quantconnect"
7-
version = "0.1.2"
7+
version = "0.1.3"
88
description = "FlashAlpha options-flow and dealer-positioning data as QuantConnect LEAN custom-data bars. GEX, DEX, VEX, vol surface, 0DTE, VRP, max-pain."
99
readme = "README.md"
1010
license = "MIT"

src/python/src/flashalpha_quantconnect/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""FlashAlpha options-flow data as QuantConnect LEAN custom-data bars."""
22

3-
__version__ = "0.1.2"
3+
__version__ = "0.1.3"
44

55
from . import config
66
from .data.exposure import (

src/python/src/flashalpha_quantconnect/data/source.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def source_for(endpoint: str, symbol: Any, date: datetime) -> Any:
5050
"""Eagerly fetch the JSON for (endpoint, ticker, date), cache it, return
5151
a sentinel ``SubscriptionDataSource`` that ``parse`` will resolve via
5252
the cache key."""
53-
from QuantConnect.Data import SubscriptionDataSource, SubscriptionTransportMedium, FileFormat
53+
from QuantConnect import SubscriptionTransportMedium
54+
from QuantConnect.Data import SubscriptionDataSource, FileFormat
5455

5556
ticker = symbol.Value
5657
key = _make_key(endpoint, ticker, date)

0 commit comments

Comments
 (0)