Wait for a deal to change
market_waitWaits until one of the person's deals changes, then answers at once; answers changed: false after timeout_seconds (default 25; a longer value waits at most 50). Call it instead of asking market_deal_log again and again: when the person waits for the other side to approve, or a seller waits for offers. A change is one the other side or Agent Market made, or the person sending back, cancelling or declining a deal. Each change says what happened and the deal's status now; a bound deal carries the other side's email in contact. Send since: wait_cursor from the last answer, so no change is missed; without it the wait starts after the last change a market_wait told this owner_key, or its last market_deal_log list. If an answer is lost, market_deal_log still shows every deal as it is now. A buyer's question is not a deal change: market_deal_log lists questions. One wait per owner_key at a time: a newer call ends the older one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Optional: wait_cursor from the last market_wait or market_deal_log answer. | |
| owner_key | Yes | The owner_key from the person's first market_make_offer or market_create_listing (or from market_sign_in). Keep it private to this conversation. | |
| timeout_seconds | No | How long to wait for a change, in seconds. Default 25; a longer value waits at most 50. Keep it under your client's call timeout. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changed | Yes | ||
| changes | Yes | ||
| next_step | Yes | What to do next, in one or two sentences. | |
| next_action | Yes | What to do next, as a code: the same advice as next_step. | |
| wait_cursor | Yes |