Trade
Session keys

How Strobe works

Session keys

One wallet signature, then every order signed in the browser.

A session key is a key pair the browser makes and keeps. The wallet authorizes it once, and from then on it signs your trading actions, so placing an order opens no wallet popup.

The one signature

When you press Enable trading, the wallet signs a Sign-In With Solana message. The message names the session key's public key, an expiry 7 days after it was issued and a one-time nonce from the server. On a wallet's first entry it also carries the invite code. The engine checks the wallet's signature and registers the key to that wallet.

What it signs

The session key signs each action over the WebSocket:

ActionWhat it does
place_orderPlaces a market or limit order.
cancel_orderCancels one resting order.
cancel_allCancels every resting order, in one market or in all.
close_positionCloses a position in full or in part with a reduce-only market order.
set_leverageSets the leverage for a market.
claim_faucetClaims test USDC in Season Zero.
revoke_sessionRevokes the session key that signs it.

Deposits and withdrawals are not on the list. Both are Solana transactions the wallet signs itself, and a withdrawal also needs the engine's co-signature.

Each action carries the time it was signed and is accepted once, so a captured action can't be sent again.

Expiry and revocation

A session key stops working 7 days after it was issued, and Enable trading asks the wallet for a new one. You can revoke the key earlier from the account panel on the trade screen. A revoked or expired key's actions are rejected.

When the chain is on, the session key is also recorded in your trader account on chain.