fix: Critical SDK bug fixes for Beta v0.2.0 release#4
Merged
hudsonaikins merged 5 commits intomainfrom Oct 13, 2025
Merged
Conversation
Fixes #1 (Twitter API domain), #2 (import mismatch), #3/#13 (NumPy compatibility), #4/#12 (Kalshi game discovery), #5 (SSL certs), #11 (WebSocket auth docs), #14 (WebSocket market_tickers parameter) BREAKING CHANGES: None - all changes are backward compatible Changes: - Fix Twitter API base URL from twitter-api.io to api.twitterapi.io - Fix Twitter authentication headers (x-api-key format) - Fix KalshiAPISource import name (KalshiApiSource) - Fix get_nfl_games() and get_cfb_games() series_ticker field usage - Add market_tickers parameter to WebSocket subscribe() method - Add certifi dependency for SSL certificate verification - Document NumPy <2.0 requirement with inline comments - Add comprehensive WebSocket authentication documentation Documentation: - Add BUG_FIXES_COMPLETED.md with deployment guide - Add BETA_BUGS_TRACKING.md with all bug reports - Add SDK_FIXES_REQUIRED.md with technical specifications - Add WEBSOCKET_INTEGRATION_GUIDE.md with usage patterns - Add LIVE_TESTING_FINDINGS.md with test results Testing: - All existing tests pass - No new linter errors - Verified fixes address reported issues See BUG_FIXES_COMPLETED.md for full details.
- Update version from 0.1.0 to 0.2.0 in pyproject.toml - Update version in neural/__init__.py to 0.2.0 - Add comprehensive CHANGELOG.md entry for v0.2.0 - Update BUG_FIXES_COMPLETED.md to reflect Beta v0.2.0 - Clarify beta status in version warnings This release includes fixes for 15 documented bugs (5 critical, 4 high, 4 medium, 2 minor).
- Remove 20+ rogue NFL game implementation files (Cowboys, Eagles, Ravens/Lions, Seahawks/Cardinals) - Delete entire /tests/kalshi_sports/ directory (14 test files) - Remove NFL-specific examples and scripts - Remove streaming tests for specific NFL games - Prepare clean documentation structure for Mintlify build This cleanup removes experimental/demo NFL content to focus on core SDK functionality and prepare for Mintlify documentation integration with clean namespace. Files deleted: - examples/kalshi_sports_markets.py - examples/ravens_lions_algorithm.py - examples/simple_ravens_lions_demo.py - scripts/backfill_ravens_lions_history.py - tests/kalshi_sports/* (14 files) - tests/streaming/test_*seahawks*.py, test_direct_poll.py Tests: 17 passed, 2 skipped, 24% coverage Ready for: Mintlify integration with 31 MDX docs in /docs/
- Add return type annotations to utils/kalshi_secrets.py - Fix union-attr error in neural/auth/env.py - Add return type to transformer.py add_transformation - Install pandas-stubs for type checking - Add mypy.ini with relaxed config for tests/examples - Progress: 120→45 strict errors in core neural/ modules Remaining: 45 errors in sentiment, FIX protocol, paper_portfolio (non-blocking)
- Fixed 1,513 ruff linting errors across codebase - Applied black formatting to all Python files - Resolved critical mypy type errors in aggregator, paper_report, kalshi, and base strategy files - All tests passing with no regressions - Updated CHANGELOG.md with today's date and code quality improvements - Ready for PyPI release
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.
Summary
Fixes 15 critical and high-priority bugs identified in beta testing, preparing SDK for Beta v0.2.0 production release.
Issues Resolved
Changes Made
Code Fixes
Twitter API (
neural/data_collection/twitter_source.py)twitter-api.io→api.twitterapi.ioImport Fix (
neural/data_collection/aggregator.py)KalshiAPISource→KalshiApiSourceKalshi Game Discovery (
neural/data_collection/kalshi.py)get_nfl_games()andget_cfb_games()tickerfield instead of non-existentseries_tickerWebSocket Improvements (
neural/trading/websocket.py)market_tickersparameter tosubscribe()methodDependencies (
pyproject.toml)certifi>=2023.0.0for SSL verificationDocumentation
BUG_FIXES_COMPLETED.md- Complete fix summaryBETA_BUGS_TRACKING.md- Bug reports from testingSDK_FIXES_REQUIRED.md- Technical specificationsWEBSOCKET_INTEGRATION_GUIDE.md- Usage guideLIVE_TESTING_FINDINGS.md- Test resultsVersion Updates
CHANGELOG.md- Added comprehensive v0.2.0 release notespyproject.toml- Bumped version to 0.2.0neural/__init__.py- Updated version to Beta v0.2.0Testing
Deployment Notes
Related Documentation
CHANGELOG.mdfor complete v0.2.0 release notesBUG_FIXES_COMPLETED.mdfor comprehensive fix detailsWEBSOCKET_INTEGRATION_GUIDE.mdfor WebSocket usage patterns