Skip to content

v0.5.528

Choose a tag to compare

@ope-olatunji ope-olatunji released this 15 Mar 16:07
· 34 commits to main since this release

Agents Now Track Unfilled Orders + CLOB Cancel + Dashboard Improvements

Agent Order Awareness

  • poly_get_open_orders now returns ALL unfilled orders: approval-pending, placed-but-unfilled from trade log, AND live orders from Polymarket CLOB exchange. Shows total pending capital locked.
  • poly_cancel_order actually cancels on the Polymarket CLOB exchange (was only cancelling in-memory approval orders). Updates trade log to cancelled.
  • poly_cancel_all cancels both in-memory pending AND all live CLOB orders via cancelAll().
  • Session protocol updated: agents MUST call poly_get_open_orders at session start (CALL #3) to review unfilled orders before placing new ones.
  • Explicit system prompt warning: "placed" ≠ "filled" — agents must not treat placed orders as completed trades.

Dashboard

  • Pending order icon on Live Positions: clickable clock icon shows count of pending orders per position. Opens modal with full details (side, outcome, price, shares, cost, date).
  • Chart toggle: Hide/Show Chart button persisted to localStorage — survives page refresh.
  • Live Positions: page size reduced to 10 (was 20). Sorted by closing date (soonest first).
  • Filters on all three tabs: Live Positions, Pending Orders, and Trades.

Balance

  • available_to_trade = exchange balance minus pending order capital (no more double-counting)
  • New pending_order_capital field in balance response