Major achievements: - ✅ Implemented all missing SQLx traits for core types (OrderStatus, OrderSide, OrderType) - ✅ Fixed Order struct with avg_fill_price field for database compatibility - ✅ Resolved HashMap SQLx issues by using serde_json::Value - ✅ Added comprehensive Exchange enum with 22+ exchanges and SQLx support - ✅ Fixed MarketRegime SQLx implementations with Custom variant handling - ✅ Implemented SQLx traits for OrderId and HftTimestamp - ✅ Fixed Symbol, TimeInForce SQLx implementations - ✅ Resolved module structure and brace mismatch issues Current status: - Errors reduced: 371 → 86 (77% reduction) - 7 crates checking, 4 still have compilation issues - Main remaining issues: type conversions and minor field mappings Key files modified: - common/src/types.rs: Added all SQLx implementations - trading-data/: Fixed struct field mismatches - common/src/lib.rs: Fixed re-exports 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
692 B
Bash
Executable File
15 lines
692 B
Bash
Executable File
#!/bin/bash
|
|
# Script to fix TimeInForce references across the codebase
|
|
|
|
echo "Fixing TimeInForce references..."
|
|
|
|
# Replace GTC with GoodTillCancel
|
|
find /home/jgrusewski/Work/foxhunt -name "*.rs" -not -path "*/target/*" -exec sed -i 's/TimeInForce::GTC/TimeInForce::GoodTillCancel/g' {} +
|
|
|
|
# Replace IOC with ImmediateOrCancel
|
|
find /home/jgrusewski/Work/foxhunt -name "*.rs" -not -path "*/target/*" -exec sed -i 's/TimeInForce::IOC/TimeInForce::ImmediateOrCancel/g' {} +
|
|
|
|
# Replace FOK with FillOrKill
|
|
find /home/jgrusewski/Work/foxhunt -name "*.rs" -not -path "*/target/*" -exec sed -i 's/TimeInForce::FOK/TimeInForce::FillOrKill/g' {} +
|
|
|
|
echo "TimeInForce references updated successfully!" |