- Updated `process_price_change` to accept an optional `asset_id` parameter for better asset validation.
- Modified `process_data` to ensure `json_datas` is always a list and to pass `asset_id` when available.
- Added checks in `update_markets` to ensure the 'multiplier' column exists and fill NaN values with empty strings.
- Refactored multiplier application in `get_buy_sell_amount` to use `row.get()` for safer access.
- Update RPC endpoint from llamarpc to polygon-rpc.com for better reliability
- Improve .env file loading to check both local and parent directory
- Update README example to use proper condition_id format (0x...) instead of numeric
- Clarify that condition_id should be hex format in documentation
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Clean up debug prints that were added during troubleshooting of hyperparameter parsing issues.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Implement smarter order management logic to avoid constantly cancelling and recreating orders:
- Only cancel orders when price differs by >0.5 cents or size differs by >10%
- Keep existing orders if changes are minor to reduce unnecessary market activity
- Add detailed logging to show when orders are kept vs cancelled
This should resolve the issue where orders were being cancelled and recreated repeatedly.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Handle NaN values from pandas when CSV cells are empty - convert to string before calling strip() method.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add max_size support to trading logic, defaulting to trade_size
- Continue quoting trade_size amounts until max_size is reached
- Implement progressive exit strategy: sell trade_size increments when at max_size
- Track both token positions for better exposure management
- Update buy conditions to use max_size instead of 0.9 * trade_size
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>