Commit Graph

  • ef4cb47d06 Add update_signed_orders_cache method to OrderBook for managing signed orders main Nawaz Haider 2026-01-15 19:57:59 +06:00
  • 5657b087c5 Reduce sleep duration in inventory updater thread from 2 seconds to 1 second Nawaz Haider 2026-01-15 19:37:36 +06:00
  • d7e2f8d04f Remove debug print statement from get_inventory function Nawaz Haider 2026-01-15 19:34:17 +06:00
  • 02bb3eefee Add inventory management with configurable limits and updater thread Nawaz Haider 2026-01-15 19:26:51 +06:00
  • e88752cb23 Refactor trading logic to simplify conditions for order placement Nawaz Haider 2026-01-15 18:23:14 +06:00
  • fa31c52cc3 Enhance trading logic to include time-based condition for trade execution Nawaz Haider 2026-01-15 16:43:36 +06:00
  • c1150f927a Fix trading logic conditions for order placement based on market trend direction Nawaz Haider 2026-01-15 16:32:02 +06:00
  • c97f96765c Fix trading logic conditions for order placement based on market trends Nawaz Haider 2026-01-15 16:24:53 +06:00
  • 3eeea819a9 Add nohup command to run merger.py in background Nawaz Haider 2026-01-15 16:13:30 +06:00
  • 768ec1358c Update trading parameters for improved strategy performance Nawaz Haider 2026-01-15 16:12:31 +06:00
  • bbfb33829e Remove test.py file containing unused asyncio test code Nawaz Haider 2026-01-14 13:13:53 +06:00
  • 7508654d00 Add Safe contract ABI and implement token merging functionality Nawaz Haider 2026-01-14 13:12:37 +06:00
  • 5a579d49c0 Refactor main function and related methods to remove async/await, replacing with synchronous calls for improved performance and simplicity Nawaz Haider 2026-01-12 21:43:00 +06:00
  • da9244eabd Remove unused requests session setup from main.py Nawaz Haider 2026-01-12 21:36:00 +06:00
  • 7abcd3642c Refactor create_signed_orders_cache to be synchronous and remove asyncio task creation Nawaz Haider 2026-01-12 21:19:23 +06:00
  • 25d7e2a2d4 Refactor order placement to use ThreadPoolExecutor for synchronous execution and improve logging of order IDs Nawaz Haider 2026-01-12 21:12:31 +06:00
  • fd0e2b31b1 Remove unnecessary async task for caching token trading info in main function Nawaz Haider 2026-01-12 20:41:05 +06:00
  • ca8e167275 Remove duplicate call to create_signed_orders_cache in OrderBook start method Nawaz Haider 2026-01-12 20:39:43 +06:00
  • 351a76a308 Add MIN_DELAY_BETWEEN_TRADES_SECONDS to config and main logic for trade pacing Nawaz Haider 2026-01-12 16:15:16 +06:00
  • b4c3eb90c9 Update trading configuration and enhance order placement logic with signed orders caching Nawaz Haider 2026-01-12 15:36:24 +06:00
  • 430f2e9ad0 Fix typo in variable name for micro vs mid basis points calculation Nawaz Haider 2026-01-10 19:12:46 +06:00
  • 32518bfceb Update trading thresholds in config and main logic for improved order placement Nawaz Haider 2026-01-10 19:10:40 +06:00
  • e0cd82553a Add market data logging to UP and DOWN order placements Nawaz Haider 2026-01-10 18:59:36 +06:00
  • 1de0ebd22e Refactor place_limit_order to remove expiration handling and simplify order placement Nawaz Haider 2026-01-06 18:56:29 +06:00
  • bf1c3515c0 Remove order_listener.py Nawaz Haider 2026-01-04 22:01:35 +06:00
  • a67afb031c Update README.md to reflect recent changes and improvements Nawaz Haider 2026-01-04 21:42:28 +06:00
  • 145fc5e6f4 Merge branch 'main' of https://github.com/nawaz0x1/py_polymarket_hft_mm Nawaz Haider 2026-01-04 21:20:27 +06:00
  • a31995f362 Remove in-memory database references and related setup from scripts Nawaz Haider 2026-01-04 21:17:25 +06:00
  • 98fe566336 Remove in-memory database implementation and associated utility functions Nawaz Haider 2026-01-04 21:14:55 +06:00
  • 06527f6bcc Refactor order placement logic in place_anchor_and_hedge function for improved clarity and efficiency old-approch Nawaz Haider 2026-01-03 22:27:15 +06:00
  • f692c0819c Refactor hedge order placement logic in place_anchor_and_hedge function for improved clarity and efficiency Nawaz Haider 2026-01-03 22:13:26 +06:00
  • 1e067d1f57 Refactor iteration calculation for hedge order placement in place_anchor_and_hedge function Nawaz Haider 2026-01-03 17:36:16 +06:00
  • b44829b474 Reduce sleep duration in hedge order placement retry loop for improved responsiveness Nawaz Haider 2026-01-03 17:25:54 +06:00
  • e94979f65f Refactor hedge order placement retry logic for improved efficiency Nawaz Haider 2026-01-03 17:24:21 +06:00
  • b5d7ea9332 Reduce retry attempts for hedge order placement in place_anchor_and_hedge function Nawaz Haider 2026-01-03 17:20:40 +06:00
  • 556dc430e8 Increase retry attempts for hedge order placement and improve logging for order prices Nawaz Haider 2026-01-03 16:59:06 +06:00
  • 75c1c20316 Implement trade counter functionality with increment, decrement, reset, and count methods Nawaz Haider 2026-01-03 16:38:54 +06:00
  • 8886969c32 Add check for ClobClient readiness in main function Nawaz Haider 2026-01-03 16:26:03 +06:00
  • 173c8e708d Update handle_message to ignore both PLACEMENT and CANCELLATION message types Nawaz Haider 2026-01-03 16:17:56 +06:00
  • b549edd757 Fix typo in cache_token_trading_infos function and update order placement logic for bid prices Nawaz Haider 2026-01-03 15:37:11 +06:00
  • 1f2b679e0c Remove price adjustment in order placement for UP and DOWN trades Nawaz Haider 2026-01-03 15:19:27 +06:00
  • 4d27054357 Reduce sleep duration in main trading loop for improved responsiveness Nawaz Haider 2026-01-03 15:13:10 +06:00
  • 9381021ac2 Fix trading trend condition by comparing up_bid_price with down_bid_price Nawaz Haider 2026-01-03 15:11:24 +06:00
  • 1782d25889 Adjust trading price thresholds and invert trading side conditions in main logic Nawaz Haider 2026-01-03 15:11:01 +06:00
  • 172c57c060 Update README.md Nawaz Haider 2026-01-03 14:28:06 +06:00
  • 65b903c8a4 Update README.md with recent changes and improvements Nawaz Haider 2026-01-03 14:26:35 +06:00
  • 09e608edd5 Update README.md with enhancements and clarifications Nawaz Haider 2026-01-03 14:21:49 +06:00
  • 8274ae9cf6 Add early return for PLACEMENT messages in order_listener Nawaz Haider 2026-01-03 13:39:29 +06:00
  • 50df9953b6 Fix run script to execute order_listener.py with python Nawaz Haider 2026-01-03 13:29:39 +06:00
  • 6a00daf67e Fix run script to use sudo for executing main.py Nawaz Haider 2026-01-03 13:27:26 +06:00
  • 0c1e9d9487 Add run script to launch in-memory database and order listener Nawaz Haider 2026-01-03 13:24:02 +06:00
  • 75f6509564 Fix setup script to use correct path for compiling in-memory database Nawaz Haider 2026-01-03 13:20:39 +06:00
  • 81b8e1420d Enhance setup script to include Rust installation and in-memory database compilation Nawaz Haider 2026-01-03 13:16:14 +06:00
  • e158f553cf Update trading logic and order placement in response to configuration changes Nawaz Haider 2026-01-03 13:11:51 +06:00
  • 868806f534 Add in-memory database implementation and utility functions for HTTP requests Nawaz Haider 2026-01-03 12:41:28 +06:00
  • 310ddffd27 Implement in-memory database with HTTP interface for item management Nawaz Haider 2026-01-03 12:09:17 +06:00
  • d2a137fc33 Add sleep before fetching tokens in main function Nawaz Haider 2026-01-02 18:59:55 +06:00
  • 281153b3c4 Update README Nawaz Haider 2026-01-02 18:21:58 +06:00
  • 0fb445db68 Update README Nawaz Haider 2026-01-02 18:19:46 +06:00
  • e4f75e2191 Update README Nawaz Haider 2026-01-02 18:09:14 +06:00
  • 05918b8e22 Add garbage collection after clearing hedged anchors and orders in refresh_market_data Nawaz Haider 2026-01-02 17:31:34 +06:00
  • ee04f687cd Refactor hedge order placement to improve error handling and processing logic Nawaz Haider 2026-01-02 17:02:14 +06:00
  • 7c75648ef3 Refactor hedge order placement logic to use a retry mechanism for improved reliability Nawaz Haider 2026-01-02 16:41:29 +06:00
  • af2c5e1a88 Refactor main trading logic to simplify conditions for placing UP and DOWN anchor orders Nawaz Haider 2026-01-02 16:38:30 +06:00
  • e822eaff22 Update handle_message to reject anchors with price greater than 0.50 Nawaz Haider 2026-01-02 16:27:56 +06:00
  • aa6fb2dab1 Update handle_message to accept anchors with status "CONFIRMED" in addition to "MATCHED" Nawaz Haider 2026-01-02 16:25:18 +06:00
  • 09b6568037 Update handle_message to reject anchors with size less than 1 Nawaz Haider 2026-01-02 16:20:59 +06:00
  • 3351d0675a Update handle_message to reject anchors with price greater than 0.50 Nawaz Haider 2026-01-02 16:11:42 +06:00
  • b4a87e8ff7 Update message handling to reject anchors with price greater than 50 Nawaz Haider 2026-01-02 16:09:21 +06:00
  • b765102b8b Update trading conditions to ensure anchor orders are placed only when ask prices are favorable Nawaz Haider 2026-01-02 16:08:23 +06:00
  • 99e843aeb1 Refactor message handling logic to simplify condition checks for anchor validity Nawaz Haider 2026-01-02 15:55:29 +06:00
  • 00ec9a3585 Add websockets to requirements Nawaz Haider 2026-01-02 15:46:55 +06:00
  • 114e7248b2 Add setup script for Miniconda installation and environment setup Nawaz Haider 2026-01-02 15:43:51 +06:00
  • 8a8da3bc0e Update price validation logic to restrict up_ask_price and up_bid_price ranges Nawaz Haider 2026-01-02 15:34:57 +06:00
  • a2e6ba939f Update PLACE_OPPOSITE_ORDER setting and increase sleep duration in main loop Nawaz Haider 2026-01-02 15:25:42 +06:00
  • e80f4ba8c9 Add separate hedging functionality with market data refresh and WebSocket integration Nawaz Haider 2026-01-02 15:23:36 +06:00
  • dbd0c4e28f Refactor client initialization to use global client setup in get_client and get_client_creds functions Nawaz Haider 2026-01-02 12:56:52 +06:00
  • d3b3a2fdb4 Refactor trading logic and client initialization; remove unused clob_client_and_order module Nawaz Haider 2026-01-02 12:40:25 +06:00
  • 73f1a2e249 Remove commented-out logging and trading signal execution in OrderBook class Nawaz Haider 2026-01-02 11:13:59 +06:00
  • 57985f5b6d Remove logging for new trading signals in OrderBook class Nawaz Haider 2026-01-01 22:53:17 +06:00
  • 14163bede5 Remove logging of new trading signals in OrderBook class Nawaz Haider 2026-01-01 22:52:08 +06:00
  • 115b08acfa Adjust ask prices by reducing them by 0.01 for trade placement Nawaz Haider 2026-01-01 22:51:34 +06:00
  • d5ec01ffd9 Refactor trading logic to use MAX_TRADES constant for trade limit Nawaz Haider 2026-01-01 22:30:32 +06:00
  • 051070ebdd Add psutil to requirements for system resource management Nawaz Haider 2026-01-01 22:25:40 +06:00
  • 791d955149 Add validation for up_ask_price and correct price usage in trading logic Nawaz Haider 2026-01-01 22:20:39 +06:00
  • 3ce5120704 Add validation for up_ask_price to ensure it is within acceptable range Nawaz Haider 2026-01-01 22:14:30 +06:00
  • b4bd479b2f Add uvloop support for improved asyncio performance and update requirements Nawaz Haider 2026-01-01 22:07:40 +06:00
  • 5e3505207b Add CPU affinity management and garbage collection to optimize performance Nawaz Haider 2026-01-01 22:05:17 +06:00
  • a8a4fb2a0e Refactor trading logic and enhance ClobClient integration for improved market operations Nawaz Haider 2026-01-01 21:59:16 +06:00
  • 73f08a0c49 Implement trading session management and add market time utilities Nawaz Haider 2026-01-01 20:02:36 +06:00
  • 1035b69eb6 Add OrderBook class and WebSocket integration for market data streaming Nawaz Haider 2026-01-01 19:54:32 +06:00
  • e28202828e Add .env.sample, update .gitignore, and implement ClobClient initialization Nawaz Haider 2026-01-01 18:56:35 +06:00
  • bac5bca57d Implement initial project structure with logging and token fetching functionality Nawaz Haider 2026-01-01 18:41:11 +06:00
  • 3e20a07f39 update README.md Nawaz Haider 2026-01-01 18:02:23 +06:00
  • fdddaecf20 first commit Nawaz Haider 2026-01-01 18:01:15 +06:00