agent_position_book
Server-side derived open position book for a trading agent: every order_filled event without a later matching position_closed on the same ticker counts as open, joined with the live Chainlink price for unrealized P&L (bps and USD). Replaces rebuilding the book from raw agent events. agent: gap-trader | narrative-trader. mode: '' (all) | paper | live | onchain — filter positions by execution mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| agent | No | gap-trader |