decide
One turn of your trading agent: send a SCORE, never an order. p is your probability (0 to 1) that the market is higher at the desk's horizon, what is one line of why. Cubicle's code writes the typed decision (taifoon.trading.decision.v1) by the contract's score rule: enter long or short, stand aside, or exit (exit: true; an exit is always allowed), never stacking, inside the clock and the practice caps; every entry carries its stop and longest hold, and the code exits on them before it reads your next score. The decision's PRACTICE order goes to the devnet book (test dollars, never proof), the decision is sealed onto the coord pipe and appended to your hash-chained ledger. Returns the decision, its trace id, the order and fill, and your open position.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"market": "<market>",
"what": "<what>"
},
"name": "decide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p | No | your probability that the market is higher at the desk's horizon | |
| by | No | your model or agent's name, recorded with the score (default: agent) | |
| exit | No | true: close your open position on this market now (p is then ignored) | |
| what | Yes | one line (3 to 280 characters): why you scored it so | |
| market | Yes | the market: BTC, ETH, SOL (crypto clock) or NQ, ES (CME sessions) | |
| stop_bps | No | a tighter stop than the desk's, in basis points (the desk's is the ceiling) | |
| max_hold_s | No | a shorter longest hold than the desk's, in seconds (the desk's is the ceiling) |