Skip to main content

Module tee_spot

Module tee_spot 

Source
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§

HCSpotCancel
HCSpotOrder
SpotCancel
SpotOrder
TeeSpotCancelParams
Cancel one open spot order by its client order id.
TeeSpotCancelSignature
What the app key signs for one spot cancel.
TeeSpotOrderParams
One spot limit order. price is USDC per base token, size base tokens.
TeeSpotOrderSignature
What the app key signs for one spot order.

Traits§

TeeSpotSigner
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.