Commit Graph

36 Commits

Author SHA1 Message Date
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
Nawaz Haider b765102b8b Update trading conditions to ensure anchor orders are placed only when ask prices are favorable 2026-01-02 16:08:23 +06:00
Nawaz Haider 99e843aeb1 Refactor message handling logic to simplify condition checks for anchor validity 2026-01-02 15:55:29 +06:00
Nawaz Haider 00ec9a3585 Add websockets to requirements 2026-01-02 15:46:55 +06:00
Nawaz Haider 114e7248b2 Add setup script for Miniconda installation and environment setup 2026-01-02 15:43:51 +06:00
Nawaz Haider 8a8da3bc0e Update price validation logic to restrict up_ask_price and up_bid_price ranges 2026-01-02 15:34:57 +06:00
Nawaz Haider a2e6ba939f Update PLACE_OPPOSITE_ORDER setting and increase sleep duration in main loop 2026-01-02 15:25:42 +06:00
Nawaz Haider e80f4ba8c9 Add separate hedging functionality with market data refresh and WebSocket integration 2026-01-02 15:23:36 +06:00
Nawaz Haider dbd0c4e28f Refactor client initialization to use global client setup in get_client and get_client_creds functions 2026-01-02 12:56:52 +06:00
Nawaz Haider d3b3a2fdb4 Refactor trading logic and client initialization; remove unused clob_client_and_order module 2026-01-02 12:40:25 +06:00
Nawaz Haider 73f1a2e249 Remove commented-out logging and trading signal execution in OrderBook class 2026-01-02 11:13:59 +06:00
Nawaz Haider 57985f5b6d Remove logging for new trading signals in OrderBook class 2026-01-01 22:53:17 +06:00
Nawaz Haider 14163bede5 Remove logging of new trading signals in OrderBook class 2026-01-01 22:52:08 +06:00
Nawaz Haider 115b08acfa Adjust ask prices by reducing them by 0.01 for trade placement 2026-01-01 22:51:34 +06:00
Nawaz Haider d5ec01ffd9 Refactor trading logic to use MAX_TRADES constant for trade limit 2026-01-01 22:30:32 +06:00
Nawaz Haider 051070ebdd Add psutil to requirements for system resource management 2026-01-01 22:25:40 +06:00
Nawaz Haider 791d955149 Add validation for up_ask_price and correct price usage in trading logic 2026-01-01 22:20:39 +06:00
Nawaz Haider 3ce5120704 Add validation for up_ask_price to ensure it is within acceptable range 2026-01-01 22:14:30 +06:00
Nawaz Haider b4bd479b2f Add uvloop support for improved asyncio performance and update requirements 2026-01-01 22:07:40 +06:00
Nawaz Haider 5e3505207b Add CPU affinity management and garbage collection to optimize performance 2026-01-01 22:05:17 +06:00
Nawaz Haider a8a4fb2a0e Refactor trading logic and enhance ClobClient integration for improved market operations 2026-01-01 21:59:16 +06:00
Nawaz Haider 73f08a0c49 Implement trading session management and add market time utilities 2026-01-01 20:02:36 +06:00
Nawaz Haider 1035b69eb6 Add OrderBook class and WebSocket integration for market data streaming 2026-01-01 19:54:32 +06:00
Nawaz Haider e28202828e Add .env.sample, update .gitignore, and implement ClobClient initialization 2026-01-01 18:56:35 +06:00
Nawaz Haider bac5bca57d Implement initial project structure with logging and token fetching functionality 2026-01-01 18:41:11 +06:00
Nawaz Haider 3e20a07f39 update README.md 2026-01-01 18:02:23 +06:00
Nawaz Haider fdddaecf20 first commit 2026-01-01 18:01:15 +06:00