Commit Graph

76 Commits

Author SHA1 Message Date
Nawaz Haider b4c3eb90c9 Update trading configuration and enhance order placement logic with signed orders caching 2026-01-12 15:36:24 +06:00
Nawaz Haider 430f2e9ad0 Fix typo in variable name for micro vs mid basis points calculation 2026-01-10 19:12:46 +06:00
Nawaz Haider 32518bfceb Update trading thresholds in config and main logic for improved order placement 2026-01-10 19:10:40 +06:00
Nawaz Haider e0cd82553a Add market data logging to UP and DOWN order placements 2026-01-10 18:59:36 +06:00
Nawaz Haider 1de0ebd22e Refactor place_limit_order to remove expiration handling and simplify order placement 2026-01-06 18:56:29 +06:00
Nawaz Haider bf1c3515c0 Remove order_listener.py 2026-01-04 22:01:35 +06:00
Nawaz Haider a67afb031c Update README.md to reflect recent changes and improvements 2026-01-04 21:42:28 +06:00
Nawaz Haider 145fc5e6f4 Merge branch 'main' of https://github.com/nawaz0x1/py_polymarket_hft_mm 2026-01-04 21:20:27 +06:00
Nawaz Haider a31995f362 Remove in-memory database references and related setup from scripts 2026-01-04 21:17:25 +06:00
Nawaz Haider 98fe566336 Remove in-memory database implementation and associated utility functions 2026-01-04 21:14:55 +06:00
Nawaz Haider 06527f6bcc Refactor order placement logic in place_anchor_and_hedge function for improved clarity and efficiency 2026-01-03 22:27:15 +06:00
Nawaz Haider f692c0819c Refactor hedge order placement logic in place_anchor_and_hedge function for improved clarity and efficiency 2026-01-03 22:13:26 +06:00
Nawaz Haider 1e067d1f57 Refactor iteration calculation for hedge order placement in place_anchor_and_hedge function 2026-01-03 17:36:16 +06:00
Nawaz Haider b44829b474 Reduce sleep duration in hedge order placement retry loop for improved responsiveness 2026-01-03 17:25:54 +06:00
Nawaz Haider e94979f65f Refactor hedge order placement retry logic for improved efficiency 2026-01-03 17:24:21 +06:00
Nawaz Haider b5d7ea9332 Reduce retry attempts for hedge order placement in place_anchor_and_hedge function 2026-01-03 17:20:40 +06:00
Nawaz Haider 556dc430e8 Increase retry attempts for hedge order placement and improve logging for order prices 2026-01-03 16:59:06 +06:00
Nawaz Haider 75c1c20316 Implement trade counter functionality with increment, decrement, reset, and count methods 2026-01-03 16:38:54 +06:00
Nawaz Haider 8886969c32 Add check for ClobClient readiness in main function 2026-01-03 16:26:03 +06:00
Nawaz Haider 173c8e708d Update handle_message to ignore both PLACEMENT and CANCELLATION message types 2026-01-03 16:17:56 +06:00
Nawaz Haider b549edd757 Fix typo in cache_token_trading_infos function and update order placement logic for bid prices 2026-01-03 15:37:11 +06:00
Nawaz Haider 1f2b679e0c Remove price adjustment in order placement for UP and DOWN trades 2026-01-03 15:19:27 +06:00
Nawaz Haider 4d27054357 Reduce sleep duration in main trading loop for improved responsiveness 2026-01-03 15:13:10 +06:00
Nawaz Haider 9381021ac2 Fix trading trend condition by comparing up_bid_price with down_bid_price 2026-01-03 15:11:24 +06:00
Nawaz Haider 1782d25889 Adjust trading price thresholds and invert trading side conditions in main logic 2026-01-03 15:11:01 +06:00
Nawaz Haider 172c57c060 Update README.md 2026-01-03 14:28:06 +06:00
Nawaz Haider 65b903c8a4 Update README.md with recent changes and improvements 2026-01-03 14:26:35 +06:00
Nawaz Haider 09e608edd5 Update README.md with enhancements and clarifications 2026-01-03 14:21:49 +06:00
Nawaz Haider 8274ae9cf6 Add early return for PLACEMENT messages in order_listener 2026-01-03 13:39:29 +06:00
Nawaz Haider 50df9953b6 Fix run script to execute order_listener.py with python 2026-01-03 13:29:39 +06:00
Nawaz Haider 6a00daf67e Fix run script to use sudo for executing main.py 2026-01-03 13:27:26 +06:00
Nawaz Haider 0c1e9d9487 Add run script to launch in-memory database and order listener 2026-01-03 13:24:02 +06:00
Nawaz Haider 75f6509564 Fix setup script to use correct path for compiling in-memory database 2026-01-03 13:20:39 +06:00
Nawaz Haider 81b8e1420d Enhance setup script to include Rust installation and in-memory database compilation 2026-01-03 13:16:14 +06:00
Nawaz Haider e158f553cf Update trading logic and order placement in response to configuration changes 2026-01-03 13:11:51 +06:00
Nawaz Haider 868806f534 Add in-memory database implementation and utility functions for HTTP requests 2026-01-03 12:41:28 +06:00
Nawaz Haider 310ddffd27 Implement in-memory database with HTTP interface for item management 2026-01-03 12:09:17 +06:00
Nawaz Haider d2a137fc33 Add sleep before fetching tokens in main function 2026-01-02 18:59:55 +06:00
Nawaz Haider 281153b3c4 Update README 2026-01-02 18:21:58 +06:00
Nawaz Haider 0fb445db68 Update README 2026-01-02 18:19:46 +06:00
Nawaz Haider e4f75e2191 Update README 2026-01-02 18:09:14 +06:00
Nawaz Haider 05918b8e22 Add garbage collection after clearing hedged anchors and orders in refresh_market_data 2026-01-02 17:31:34 +06:00
Nawaz Haider ee04f687cd Refactor hedge order placement to improve error handling and processing logic 2026-01-02 17:02:14 +06:00
Nawaz Haider 7c75648ef3 Refactor hedge order placement logic to use a retry mechanism for improved reliability 2026-01-02 16:41:29 +06:00
Nawaz Haider af2c5e1a88 Refactor main trading logic to simplify conditions for placing UP and DOWN anchor orders 2026-01-02 16:38:30 +06:00
Nawaz Haider e822eaff22 Update handle_message to reject anchors with price greater than 0.50 2026-01-02 16:27:56 +06:00
Nawaz Haider aa6fb2dab1 Update handle_message to accept anchors with status "CONFIRMED" in addition to "MATCHED" 2026-01-02 16:25:18 +06:00
Nawaz Haider 09b6568037 Update handle_message to reject anchors with size less than 1 2026-01-02 16:20:59 +06:00
Nawaz Haider 3351d0675a Update handle_message to reject anchors with price greater than 0.50 2026-01-02 16:11:42 +06:00
Nawaz Haider b4a87e8ff7 Update message handling to reject anchors with price greater than 50 2026-01-02 16:09:21 +06:00