37 Commits

Author SHA1 Message Date
Daniel Sapkota 4f32103591 Fix merge 2026-07-09 14:47:52 -04:00
Daniel Sapkota f35e79030d Good enough for the public 2026-07-06 15:28:07 -04:00
Daniel Sapkota b96d9e94b4 Good enough to hand to the public 2026-07-06 14:48:18 -04:00
Daniel Sapkota a18e1ac7fb Hardening 2026-07-05 22:15:30 -04:00
Daniel Sapkota cb4438655c Harden it up 2026-07-05 18:47:11 -04:00
warproxxx 04179bc344 Merge pull request #32 from warproxxx/v2-rewrite
V2 rewrite
2026-07-05 18:08:36 -04:00
Daniel Sapkota b3f25e0fa7 V2 support 2026-07-05 18:07:28 -04:00
Daniel Sapkota c7b686116e Getting there 2026-07-05 17:50:04 -04:00
warproxxx bfacef317b Warning location
Put elsewhere
2026-04-06 13:54:51 -04:00
warproxxx f025805883 Merge pull request #21 from nicolasakf/main
Enhance data processing and utility functions
2026-01-23 10:32:09 -08:00
warproxxx b7d4185a80 Eliminate duplicate warning in README
Removed duplicate warning about the bot's profitability and usage.
2026-01-17 09:13:31 -08:00
warproxxx f1bf5e1666 Revise disclaimer for market making bot
Updated disclaimer to clarify profitability and competition.
2026-01-17 09:13:01 -08:00
warproxxx 037013390a Update README with profitability disclaimer
Added a disclaimer about the bot's profitability and usage.
2026-01-17 09:11:48 -08:00
warproxxx c3792b3fb2 Add MIT License to the project 2026-01-06 11:30:58 -05:00
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
warproxxx a6f87c5765 Reduce max workers to 2 2025-11-07 14:42:48 -08:00
warproxxx 04cba589c5 Merge pull request #14 from Julian1255/patch-1
Fixed Code to handle the new WS price_change logic
2025-11-07 14:21:57 -08: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 a8b3762baa Update readme 2025-11-03 09:28:34 -08:00
warproxxx 0a8ff4cefd Use UV for better package management 2025-11-03 09:26:42 -08:00
warproxxx 7c7ef82c80 Merge pull request #6 from warproxxx/optimizations
Optimizations
2025-06-22 10:38:37 -07:00
warproxxx a3ba8b7fca Update poly_merger configuration and documentation
- 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>
2025-06-22 10:37:08 -07: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 4d206e05d8 Fix excessive order cancellation and recreation
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>
2025-06-22 10:28:13 -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 dacee40482 Optimize read only mode 2025-06-22 10:15:07 -07:00
warproxxx 9b327f451e Fix a bug with max size calculation 2025-06-22 10:07:14 -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 b8de7e7bb1 Made data retreiver faster 2025-06-22 08:25:29 -07:00
warproxxx 5617aa29bc Update README.md 2025-06-06 17:20:59 -07:00
warproxxx a1140c076f Handle the polymarket changes 2025-04-17 17:39:58 -07:00
warproxxx 5b5fa5a180 Add my X account 2025-04-02 09:33:32 -07:00
warproxxx ae90b7b15c Update ReadMe and add sample sheet 2025-04-02 09:20:16 -07:00
warproxxx 8e500d9437 Repo is ready 2025-03-31 12:16:51 -04:00