Commit 804f25e
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
- src
- csharp/FlashAlpha.QuantConnect
- python
- src/flashalpha_quantconnect
- data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments