Development Log
2025-03-13: Bug Fixes and Parameter Handling Improvements
- Fixed parameter handling for API requests
- Corrected strategy_params format to properly convert between frontend and backend formats
- Updated data_feed parameter handling to ensure consistent format
- Fixed endpoint URL for strategy comparison from
/api/compareto/api/compare-strategies - Added proper date formatting for API requests
2025-03-13: Symbol Search Component and Data Feed Improvements
- Created a dedicated
SymbolSearchcomponent to handle symbol searching and suggestions - Implemented debounce functionality to prevent excessive API calls
- Added proper loading indicators and styling for suggestions
-
Improved user experience with keyboard navigation and selection
-
Updated data feed handling in the API
- Changed from boolean
use_realtime_datato stringdata_feedparameter - Added support for two data feed options:
sip(real-time) anddelayed_sip(delayed) - Updated UI to clearly indicate which data feed is being used
-
Updated backend to handle the new parameter format
-
Improved UI components
- Redesigned BacktestForm and StrategyComparisonForm components
- Created new StrategyComparisonResults component
- Updated BacktestResults component with tabbed interface
-
Enhanced error handling and user feedback
-
Added comprehensive API documentation
- Created detailed API.md file with endpoint descriptions
- Documented request/response formats
- Added information about data feed options
2025-03-12: UI Tests Improvements
- Renamed
seleniumdirectory toui_teststo avoid package conflicts - Updated test runner and scripts to use the new directory structure
- Enhanced error handling in UI tests with screenshots and better debugging
- Updated documentation for UI tests
2025-03-11: DateTimePickerDual Component
- Created a new DateTimePickerDual component for selecting date ranges
- Implemented validation to ensure start date is before end date
- Added visual feedback for invalid date selections
- Updated Backtest and Strategy Comparison forms to use the new component
2025-03-10: Initial Project Setup
- Set up basic project structure
- Implemented backend API with Flask
- Created frontend UI with React
- Added initial trading strategies
- Set up basic backtesting functionality
2025-03-13: Bug Fixes for Parameter Handling and Data Display
Fixed Issues
- Parameter Handling: Fixed parameter handling in both frontend and backend to ensure proper communication between components
- Updated strategy parameter conversion from array to dictionary format
- Fixed date formatting to properly handle ISO date strings
- Added proper handling of the
data_feedparameter throughout the application - Data Display: Fixed issues with data display in the frontend
- Updated
BacktestResultscomponent to handle different data formats - Updated
StrategyComparisonResultscomponent to handle both new and old data formats - Added better error handling and debugging information
- API Endpoints: Fixed issues with API endpoints
- Updated
/api/backtestendpoint to properly process parameters - Updated
/api/compare-strategiesendpoint to handle strategy-specific parameters - Added proper error handling and logging
- Alpaca API Integration: Fixed issues with Alpaca API integration
- Updated
Backtestclass to properly use thedata_feedparameter - Added fallback mechanism for SIP subscription errors
Technical Details
- Added parameter type conversion (string to number) for numeric parameters
- Improved error handling with detailed error messages and stack traces
- Added console logging for debugging purposes
- Ensured backward compatibility with existing data formats