Expand description
TEE user spot orders: HyperCore spot orders signed by the account’s app key (an active Account API wallet) and placed through Hypercall’s TEE-held Hyperliquid API wallet, on a portfolio-margin account.
Setup is the TEE perp setup (register the app key, enroll the TEE API
wallet, approve the Hypercall builder); see crate::tee_perp. Nonces
follow the same server-clock window.
A buy holds its whole cost at the limit back from PM cash until the order ends and a portfolio snapshot reflects it; a sell holds its coin. Proceeds and bought tokens count once a snapshot shows them.
Structs§
- HCSpot
Cancel - HCSpot
Order - Spot
Cancel - Spot
Order - TeeSpot
Cancel Params - Cancel one open spot order by its client order id.
- TeeSpot
Cancel Signature - What the app key signs for one spot cancel.
- TeeSpot
Order Params - One spot limit order.
priceis USDC per base token,sizebase tokens. - TeeSpot
Order Signature - What the app key signs for one spot order.
Traits§
- TeeSpot
Signer - A key that signs TEE spot orders and cancels.
Functions§
- tee_
spot_ cancel_ signing_ hash - EIP-712 digest the app key signs for a TEE spot cancel.
- tee_
spot_ order_ signing_ hash - EIP-712 digest the app key signs for a TEE spot order.