You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Linear
Refs RAI-753: https://linear.app/makeitrain/issue/RAI-753/support-inactiveclosed-orders-in-order-list-endpoints
## Dependencies
Stacked on REST API PR: #137
Depends on rain.orderbook PR: rainlanguage/raindex#2688
## Summary
- Add `state=active|inactive|all` to owner and token order list endpoints, defaulting to `active` to preserve current behavior.
- Add stable `orderType`, `active`, `removedAt`, and `chainId` fields to order summaries without exposing raw `parsedMeta` or raw Rainlang.
- Return inactive order summaries without live quoting: `ioRatio` is `"-"`, `maxOutput` is `null`, and `outputVaultBalance` is `"0"`.
- Populate `removedAt` from the rain.orderbook removed timestamp accessor when available, while active orders continue returning `null`.
- Update order list docs and route/filter tests for active, inactive, all-state, and chain-scoped summary behavior.
## Checks
- `cargo fmt --all -- --check` (rain.orderbook)
- `cargo test -p raindex_common raindex_client::orders` (rain.orderbook)
- `nix develop -c cargo fmt`
- `nix develop -c cargo test routes::orders`
- `nix develop -c cargo check`
- `nix develop -c rainix-rs-static`
- `nix develop -c cargo test`
|`denomination`|`wrapped` or `unwrapped`|`wrapped`| Return wrapped token amounts as-is, or normalize wrapped token balances and IO ratios to unwrapped values |
|`state`|`active`, `inactive`, or `all`|`active`| Filter by current order state |
164
+
|`page`| number | 1 | Page number |
165
+
|`pageSize`| number | 20 | Results per page |
166
+
|`denomination`|`wrapped` or `unwrapped`|`wrapped`| Return wrapped token amounts as-is, or normalize wrapped token balances and IO ratios to unwrapped values |
166
167
167
168
Use `denomination=unwrapped` to view order balances and IO ratios normalized to
0 commit comments