Commit Graph

56 Commits

Author SHA1 Message Date
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
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