swap_status
Check the status of an open swap by providing the swap handle. Returns the current best sealed bid and number of bids, enabling you to decide when to execute or resume after losing context.
Instructions
Re-poll an open swap by its swap_handle — returns the current best sealed bid + how many bids are in. Read-only, stateless: the primary way to resume a swap after losing context (only the swap_handle is needed).
USE WHEN: letting maker competition build before executing, or rebuilding an in-flight swap after a context reset. DO NOT USE WHEN: you need settlement-leg detail (use get_htlc) or your trade history (use list_my_trades).
PARAM NOTES: returns best_bid (or null), bids_seen, still_open and rfq_status. When best_bid is present, swap_execute with the same limit_price (or best_bid.quote_id) to take it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swap_handle | Yes | The swap_handle returned by swap_quote (the RFQ id). | |
| max_wait_seconds | No | Bounded wait for new bids this call. Default 15, capped 25. |