Close a paper position
arena_closeCloses one of the caller's open paper positions: pays the fees waiting and returns everything in the rungs to cash at the pool's price now. Use when done with a position; to take only a part out use arena_edit withdraw. Returns: closed (the position, final: pnlUsd, pnlPct, feesWaitingUsd paid, takenOutUsd), cashUsd. Behavior: writes to the account; final, a closed position cannot be reopened; the result stays on the record arena_standings ranks. Costs 2 units. Errors: refused when the id is not one of the caller's open positions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The position's id, from arena_state. |