temporal_protect_plan
Plan liquidation protection for a Hyperliquid perp
Use whenever you are opening, sizing, adding leverage to, or holding a leveraged BTC perp on Hyperliquid and liquidation risk matters. Returns a Temporal Protect structure: the same perp plus attached perpetual options (no expiry) that move the liquidation price to your target, with the net cost, and 'days protected' (how long margin covers the options' holding cost in the worst case; <30 days is a warning). Read-only, no signature. Prefer this over lowering leverage or adding margin when you want to keep exposure but survive a wick. The plan names the legs; to open it, build the act with temporal_build_call (act openPerpWithLegs) from the plan's legs.
输入参数lev必填side必填asset必填target必填pieceUSDdepositUSD必填protectDays
temporal_option_quote
Quote a perpetual (non-expiring) call or put
Use when you want option exposure on BTC without managing expiries or rolls, when you want to sell volatility, or when you want to compare a hedge's cost against Deribit. Returns the best firm single-maker price for the full size on Temporal's perpetual options: no expiry; the holder instead pays a continuous holding cost (think: funding for options). The answer carries the fee, the oracle venue's side price it is measured from (oracleSideUSD) and the order as pieces. Read-only, no signature. Counts toward the unfilled-request limit (20 a minute, 60 in 10 minutes); a refusal such as NoSingleMaker(qty, maxRoom) means size down.
输入参数kqty必填side必填wing必填asset必填months必填walletstrikeUSD
temporal_option_optimise
Preview how an option order would fill
Use after temporal_option_quote and before placing an order, to see how the order splits into pieces, and (Flex strike/duration) whether a nearby strike or duration fills with less slippage. Use it to size down when a NoSingleMaker refusal appears. Read-only, no signature.
输入参数qty必填side必填wing必填asset必填autoAtmonths必填optimisedecayRatestrikeUSD必填optSlipPctstrikeRate
temporal_earn_plan
Preview earning yield by making option markets (TLP)
Use when you hold idle USDC on Hyperliquid and want yield, or already hold a BTC perp and want extra income on it (covered-call style: sold calls can be covered by a long perp, sold puts by a short perp). Previews a maker account's quoting (the Automatic / TLP split and the caps that bound its room). Returns come from half the oracle venue's spread plus holding cost on options you write, minus the venue's 10 %; option P/L can be negative. Read-only. It is a preview of a maker account that already exists (accountId from temporal_account_state); with none, the venue names what it needs.
输入参数assetaccountIdinventoryFrac
temporal_account_state
Read a wallet's Temporal accounts, positions and margin
Use before any act, and whenever you need a Temporal position's value, margin, or distance to liquidation. Returns free cash, accounts (OPTIONS, PROTECT, EARN; each account's `id` is the number temporal_build_call takes as `account`), legs and perps with their valuation, and margin. Read-only.
输入参数wallet必填
temporal_access
Check whether a wallet may trade on Temporal, and how to get access
Use FIRST for any wallet that has not traded here yet. Temporal is an open beta ($100 per wallet, not offered in some countries): a wallet must accept the terms of use once (one signature, no gas) before it can deposit or trade. Returns { inviteOnly, invited, termsAccepted, canTrade, caps, termsMessage?, how }. If canTrade is false, tell the human what `how` says; do not keep trying acts. Read-only.
输入参数wallet必填
temporal_venue_status
Check Temporal venue health, prices and fees
Use first in a session, or when a quote looks stale or a refusal mentions prices or maintenance. Returns venue status and per-asset price freshness (/health) and chain ID, ledger address, signing settings, priced assets, fees and maintenance (/chain/health). Read-only.
无需输入参数。
temporal_fills
List a wallet's fills
Use to confirm an act filled, or to report P/L history. Newest first. The index trails the chain by a few seconds: if a fill is not there yet, wait and read again. Read-only.
输入参数pagelimitwallet必填account
temporal_funding_info
Get the deposit address and HyperCore balance
Use when a wallet needs to fund Temporal with USDC from Hyperliquid. Returns where to send USDC and what has arrived, plus the wallet's HyperCore balance. No gas coin is needed. Read-only.
输入参数wallet必填
temporal_build_call
Build the ledger call for an act from plain numbers
Use to turn what the human wants into the exact ledger call, so nothing is hand-encoded. Give the act, the wallet and that act's arguments in plain units; get back { call (0x calldata), callHash }. Builds only: nothing is signed or sent. Acts and their arguments: connect (none); mintAccount (kind: options | protect | earn); deposit / withdraw (account, usd); openLegAtFront (account, asset, side buy|sell, wing, strikeUSD, months, qty, consentUSD = the most cash the open may draw, boundUSD = the price limit per coin: a buy fills at most it, a sell at least it; the venue may require it); closeLegAtFront (account, legIndex, qty, moreLegs?); closeAccountAtFront (account); openPerpWithLegs (account, asset, side long|short, qty, leverage, marginUSD, limitUSD?, legs: 1 to 4 of { wing, side, strikeUSD, qty, months, boundUSD, consentUSD }); requestClosePerp (account, perpId); exitMaker (account: an EARN maker leaves: its written options are handed to the other makers at market; refused by name ExitOff while the venue has it off, Underwater below margin). `account` is the ledger account id from temporal_account_state; a new wallet connects and mints first. A bad argument is refused by name (bad_arg, with the argument).
输入参数act必填qtyusdkindlegssidewingassetmonthsperpIdwallet必填account另有 8 个
temporal_dryrun
Dry-run a Temporal act
Required before every act. Simulates the ledger act and returns what would happen, or the named refusal, without changing anything; also returns callHash. After this, tell the human the outcome and cost in plain words and wait for an explicit yes before temporal_prepare_intent.
输入参数call必填user必填extraCashUSD
temporal_prepare_intent
Prepare EIP-712 typed data for the wallet to sign
Use after a dry-run the human approved. Reads the next nonce and the chain/ledger domain and returns the exact VenueIntent EIP-712 typed data for the caller's wallet to sign (eth_signTypedData_v4). The callHash is computed here from the call itself and checked against any callHash you pass, so the wallet never signs a hash that is not this call's. This server never signs and never needs a key. Pass the signature and the returned `submit` fields to temporal_submit_intent.
输入参数call必填user必填callHashttlSeconds
temporal_submit_intent
Submit a signed Temporal act
Sends ONE wallet-signed ledger act (open/close a leg, open a protected perp, deposit, withdraw, ...). Moves real money. Only call after temporal_dryrun, after stating outcome and cost to the human, and after they said yes; set confirmed:true to attest that. The venue submits it and pays the gas. If the venue refuses, report the named reason and do not retry with different numbers unless asked; never resend a signed act that may have landed without reading temporal_fills first.
输入参数sig必填call必填user必填nonce必填snapsdeadline必填confirmed必填
temporal_session_prepare
Get the message a maker wallet signs to open a venue session
Use FIRST when an agent must change maker settings (quoting on or off, caps, a covering perp, a custom bot's registration): those routes need a venue session, not a ledger signature. Returns { address, nonce, message }: have the wallet sign `message` with personal_sign (EIP-191; it authorises nothing, moves no funds, costs no gas; the nonce expires in 10 minutes), then call temporal_session_open. Nothing is stored on this server.
输入参数wallet必填
temporal_session_open
Turn the wallet's signature into a venue session token
Use after the wallet signed the message from temporal_session_prepare. Returns { token, wallet }: the caller keeps the token and passes it as `token` to the maker tools (it is sent as Authorization: Bearer on that one call). This server keeps nothing and logs nothing; never paste the token into chat or a log. The session carries no spending power: money still moves only by wallet-signed acts (temporal_build_call). A bad or expired signature is refused by name.
输入参数wallet必填signature必填
temporal_session_close
End a venue session
Use when the maker work is finished, or the token may have leaked: revokes that session token at the venue. Changes nothing else.
输入参数token必填
temporal_maker_state
Read a maker's accounts: quoting state, caps, margin, liquidation distance
Use before any maker change, and on a timer by a custom maker's bot. Returns the signed-in wallet's EARN (maker) accounts as the venue records them (`id` = the record key the other maker tools take as accountKey, `ledgerAccountId`, quoting on or off, mode, curve dials) plus the ledger's own numbers for the wallet from temporal_account_state (equity, margin requirement, distance to liquidation, positions) when you also pass `wallet`. Read-only; the session token is sent on this call only.
输入参数token必填wallet
temporal_maker_connections
List a maker wallet's registered custom-bot connections
Use to check whether a custom maker's bot is registered and online (poll transport) or to find the connection `id` that temporal_maker_unregister takes. Read-only. Not needed for TLP: the venue runs that program.
输入参数token必填
temporal_maker_quoting
Turn a maker account's quoting on or off
Use to start or stop making markets on an EARN account. TLP is the default way to earn (one deposit, the venue quotes for you): quoting on with mode auto and tlp:true. Custom (mode custom) is only for a maker that brings its own pricing and runs its own bot; the venue enforces only the hard limits. Quoting needs a deposit on the account (refused by name: no_deposit) and a mode when the curve is untouched (mode_unconfirmed). Quoting off is always allowed. A maker that leaves must also close its positions (see temporal_build_call: closeLegAtFront, exitMaker, closeAccountAtFront). Moves no money but changes who can trade against the account's margin: describe it to the human and wait for a yes; set confirmed:true.
输入参数on必填tlpmodeassettoken必填accountconfirmed必填accountKey
temporal_maker_settings
Read or set a TLP / AUTO maker account's caps and spread dials
For TLP and AUTO accounts, where the venue prices for you: use to read or change the caps that bound the account's room and its spread. A CUSTOM maker prices in its own bot and owns its limits there; it normally never needs this (it does need temporal_maker_state). Without `patch` this reads the account's dials. With `patch` it sets them (confirmed:true required): Eplus = the most net long exposure the account may take, in coins, 0 or more; Eminus = the most net short exposure, 0 or less (a patch that breaks these bounds is refused by name and nothing is applied); hBps = half-spread in basis points (0 to 150); preset = track (quote the oracle's own bid and ask, TLP / AUTO) or own (the page-typed custom curve). `raw` (custom curves only) posts a grid; the venue may have it switched off (404).
输入参数rawassetpatchtoken必填accountconfirmedaccountKey
temporal_maker_asset
Quote a second asset on a TLP / AUTO maker account
For TLP and AUTO accounts: use to add BTC or HYPE to the markets one EARN account quotes, with that asset's own Eplus (net long cap, coins, 0 or more) and Eminus (net short cap, 0 or less), or to remove one (remove:true). primary:true moves the account's own asset (refused while it has open legs). Needs the venue record key (temporal_maker_state `id`). Changes what the account's margin stands behind: describe it to the human; set confirmed:true.
输入参数Eplusasset必填token必填Eminusremoveaccountprimaryconfirmed必填accountKey必填
temporal_maker_perp
Read or set a maker account's covering perp
Use when a maker's sold options leave it exposed and it wants a Hyperliquid perp to cover them (a long covers sold calls, a short sold puts), or to read what it has asked for. A TLP does this automatically; a CUSTOM maker opts in here and manages it itself. Without `side` this reads the account's asks and covering perps. With `side` it sets the ask: long | short | off, size in coins (capped at the coins sold on that side; 'off' withdraws it). The venue places it on the keeper's next pass; it changes at most once per 15 minutes per account. Refusals by name: below_min (smaller than the venue's minimum notional), deposit_short (the margin to reserve is not free), too_soon. The perp's margin is reserved from the account's deposit. Describe the change and wait for a yes; confirmed:true on a set.
输入参数sidesizeassettoken必填account必填confirmed
temporal_maker_rename
Rename a maker account
Use when a human asks to label an EARN account (up to 40 characters). Cosmetic; no money, no quoting change. Set confirmed:true after the human asked for the name.
输入参数name必填token必填confirmed必填accountKey必填
temporal_maker_register
Register a custom maker's quoting bot with the venue
ONLY for a CUSTOM maker that brings its own pricing (TLP needs no bot: use temporal_maker_quoting). Registers the bot that answers the venue's broadcast requests with signed firm quotes. transport poll (default; the bot long-polls, no inbound port) or webhook (an https url the venue POSTs each request to). One EARN account per wallet. The wallet must own the account, or the bot's signing key must be set as the account's quote signer on chain (signer_not_set otherwise). Re-registering replaces the connection. A reference bot: agent-kit/examples/custom-maker. Describe it to the human; set confirmed:true.
输入参数urltoken必填signeraccount必填confirmed必填transport
temporal_maker_unregister
Remove a custom maker bot's registration
Use when a custom maker's bot should stop being asked for quotes (a stop rule fired, or the maker is leaving). The id is from temporal_maker_connections. The account keeps its positions and margin: turn quoting off and close or exit separately. Set confirmed:true.
输入参数id必填token必填confirmed必填