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
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
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
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