Ask what the view would be if something happened
what_if_gambitWhat the view of one ticker would be if something happened (requires api:read) — the call for "what if the ETF is approved?". The chain for one ticker. Everything it stores is in YOUR personal layer: the shared view never changes because of it. Over this connector Gambit runs no model for you: YOUR OWN model does the personal work. (1) Add data: add_gambit_evidence stores a fact you know. It is labelled unconfirmed until Gambit confirms it from an official or wire source that states it; a confirmed fact's source joins the shared evidence, and the shared view uses it on its normal run. (2) Your view: the take formed again on top of the shared take plus your facts, which are assumed true for your view only. To form it: call get_gambit_pack, form the take with the rules and output_schema in the pack, then call submit_gambit_view. (3) What if: what_if_gambit gives the view if something happened; when the question matches a dated condition the view already lists, the answer is precomputed and no model runs; otherwise it returns the pack with the event added, for your model to answer. (4) Plan: plan_gambit gives entry, stop, size and exits from your own limits. A plan is not a recommendation to trade and places no order. question (1-1000 characters): the event, in plain words. watch_id (optional): the watch_id of a pending condition, from view.prove_us_wrong[].watch_id or view.would_strengthen[].watch_id in get_gambit (from your_view.view instead when you have your own view), to ask about exactly that condition. The answer starts from your latest accepted view while get_gambit still shows it, else from the shared view (based_on names which, and the shared version it rests on). When the question matches a condition the view already lists (or you pass its watch_id), the answer is precomputed and no model runs: source precomputed, lean_if, condition, check_by and explanation; it is kept, so asking again answers from it (cached true). A question that only looks like a listed condition is not given that condition's answer, and neither is a question about the opposite event (not approved, or below instead of above). Otherwise the answer is source your_model: pack (the shared take with everything behind it, with the event added as the item marked kind assumption), rules (assume the event has happened and give the take as if it had: which levers it moves, by how much against what is priced) and output_schema. Answer it with your own model, keeping to the rules; Gambit runs no model, stores nothing and counts nothing for it. A what-if never changes any stored view. Errors: 409 gambit_building when Gambit has no view of the ticker yet (get_gambit by symbol queues it; try again later); 404 unknown_symbol; 422 ambiguous_symbol with candidates (call again with one candidate as the symbol); 404 unknown_watch when watch_id names no open condition of the view; 503 gambit_reads_disabled while these reads are switched off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | a ticker such as BTC or NVDA, or an exact id such as xyz:GOOGL or ref:eq:IP, as for get_gambit | |
| question | Yes | the event to assume, in plain words | |
| watch_id | No | a pending condition's watch_id, from view.prove_us_wrong or view.would_strengthen in get_gambit |