Commit Graph

11 Commits

Author SHA1 Message Date
nicolasakf cce9241c8d Enhance data processing and utility functions
- 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.
2026-01-05 22:02:48 -03:00
Julian a662380e65 Fixed Code to handle the new WS price_change logic
details about the changes:
https://docs.polymarket.com/developers/CLOB/websocket/market-channel-migration-guide
2025-11-07 20:02:14 +01:00
warproxxx 0a8ff4cefd Use UV for better package management 2025-11-03 09:26:42 -08:00
warproxxx 652e330424 Remove debug logging statements
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>
2025-06-22 10:30:39 -07:00
warproxxx fa2c3eff97 Fix TypeError in market data processing when prices are None
Handle None values returned from find_best_price_with_size() to prevent arithmetic operations on NoneType. Added null checks for:
- Mid price calculation
- Token2 price transformations (1-x operations)
- Bid/ask sum calculations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 10:22:31 -07:00
warproxxx ed7a1f9be3 Fix AttributeError in hyperparameter parsing
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>
2025-06-22 10:20:07 -07:00
warproxxx ee24553856 Fix hyperparameter parsing for read-only mode
- Improved CSV parsing logic for hyperparameters with empty type cells
- Enhanced read-only mode sheet access with multiple URL formats and GID mapping
- Added debug logging to identify parameter type mismatches
- Fixed UnboundLocalError for max_size variable
- Fixed unused variable warnings

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 10:18:29 -07:00
warproxxx 7ed78050f3 Created a read only mode if no credentials.json 2025-06-22 10:05:20 -07:00
warproxxx 8456697577 Implement progressive position sizing with max_size parameter
- 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>
2025-06-22 09:38:27 -07:00
warproxxx a1140c076f Handle the polymarket changes 2025-04-17 17:39:58 -07:00
warproxxx 8e500d9437 Repo is ready 2025-03-31 12:16:51 -04:00