| name | selector | who | does |
|---|---|---|---|
| open(address token, uint8 side, bytes32 postHash, int32 netAtOpen) | 0x2d99b319 | agent | opens a long or short at the current mark |
| close(uint256 id, uint8 reason) | 0x52957ecc | agent | closes a position at the current mark and settles |
| fund() | 0xb60d4288 | anyone | claims pons creator fees into the book |
| mark(address token) | 0x7ceeb880 | view | the pool price the book would use right now |
| position(uint256 id) | 0xf7a95a9e | view | every stored field of a position |
| openIds() | 0xab751336 | view | ids of positions still open |
| realized() | 0x306cccd6 | view | signed sum of settled pnl |
| router(), quote(), stateView(), notional(), maxAge(), lossCapBps() | 0xf887ea40 | view | the parameters, read by this site |
| event | fields | count |
|---|---|---|
| Opened | id, token, side, size, notional, entryPrice, postHash, netAtOpen, ts | |
| Closed | id, exitPrice, pnl, reason, ts | |
| Funded | amount, txHash, ts |