-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Currently, when trying to use the market maker with a negative risk market, the price fetching fails:
Relevant logs
2025-01-07 19:16:01,186 INFO MainThread Initialized Market: Market[condition_id=0x1921202aa3f884b9c562a244f1e58417d93c9315e6768d27768eb3b2abc2c95b, token_id_a=94380601938917471890683146239906275721083336116121653743490052083212361279539, token_id_b=22958654163400867462939006786983317798631018456649016209985632697454510505264]
...
2025-01-07 19:19:07,460 DEBUG Thread-16 (thread_target) https://clob.polymarket.com:443 "GET /midpoint?token_id=94380601938917471890683146239906275721083336116121653743490052083212361279539 HTTP/1.1" 404 None
2025-01-07 19:19:07,461 ERROR Thread-16 (thread_target) Error fetching current price from the CLOB API: PolyApiException[status_code=404, error_message={'error': 'No orderbook exists for the requested token id'}]
2025-01-07 19:19:07,463 INFO Thread-16 (thread_target) Could not fetch price from CLOB API, returning random price: 0.47
2025-01-07 19:19:07,463 DEBUG Thread-16 (thread_target) target_price: 0.47
2025-01-07 19:19:07,463 DEBUG Thread-16 (thread_target) {<Token.A: 'TokenA'>: 0.47, <Token.B: 'TokenB'>: 0.53}
2025-01-07 19:19:07,464 DEBUG Thread-16 (thread_target) order to cancel: 0
2025-01-07 19:19:07,464 DEBUG Thread-16 (thread_target) order to place: 0
When used with a non-neg market the price fetching works.
Metadata
Metadata
Assignees
Labels
No labels