Lighter
Perpetuals trading on zkLighter via Thirdfy provider actions. CCTP funding, API key signing, and integrator fee readiness.
Category: Trading
Lighter perpetuals are exposed through the governed action catalog under provider lighter. Orders are signed with a Lighter API key through the Thirdfy signer sidecar, not by ERC-7710 Gator grants.
Credential model
| Layer | Model |
|---|---|
| Exchange orders | Lighter API key (lighter_api_key credential: privateKey, apiKeyIndex 4–254, accountIndex) |
| Funding | CCTP deposit intent from Base, Arbitrum, or Avalanche USDC (minimum 5 USDC) |
| EVM funding txs | May use agent_wallet for source-chain USDC movement before CCTP |
| Reads | L1 address or Lighter account index |
Discovery
| Surface | Example |
|---|---|
| MCP | getProviderActions { provider: "lighter" } |
| CLI | thirdfy-agent actions --provider lighter, then thirdfy-agent venue readiness lighter |
Use it
Ask your agent:
Check the venue. Readiness reports funding, credentials, approvals and the blockers that stop an order.
Trimmed result from a real read on 2026-10-08, for an account just under the deposit minimum:
ready is true only when blockingReasons is empty. Take accountIndex from setupStatus; order writes need it.
One read. Market IDs and decimals come from search_lighter_markets (ETH is marketId 0, with 4 size and 2 price decimals). The order book takes the marketId:
Trimmed result from a real read on 2026-10-08:
What to check: the book shows human prices and sizes as strings. Order writes take integers scaled by the market decimals, so convert before you send one.
One write. A limit buy on ETH:
This places a real order with real funds. Run getVenueReadiness first and confirm with the wallet owner.
Replace accountIndex with yours and apiKeyIndex with your registered key (4 to 254). With 4 size decimals, baseAmount: 50 is 0.005 ETH. With 2 price decimals, price: 260000 is a worst price of 2600.00. isAsk: false buys. Check the order clears minBaseAmount and minQuoteAmount from search_lighter_markets. Run thirdfy-agent preflight with the same flags to check the params before you send it.
Readiness checklist
- Source-chain USDC funded for CCTP when margin is not already on Lighter.
- Onboarding complete (
complete_lighter_onboardingor setup/status actions). - API key registered (
create_lighter_api_keythenregister_lighter_api_key). - Integrator approval when Thirdfy partner monetization is active (
approve_lighter_integrator). Unfunded integrator treasury returnsLIGHTER_INTEGRATOR_ACCOUNT_UNFUNDEDand orders proceed without integrator fee attachment. - Preflight and
delegationStatusbefore live writes. LIGHTER_SIGNER_URLorLIGHTER_SIGNER_BINARY_PATHconfigured on the API for signed writes.
Execution lanes
runMode | Use |
|---|---|
agent_wallet | Solo managed wallet for automated complete_lighter_onboarding (Base CCTP + Ethereum priority changePubKey) |
thirdfy / hybrid | Delegated user capital with lighter_api_key for order writes |
Use explicit place_lighter_perps_order actions. Generic place-perps-order aliases remain Hyperliquid-only in v1.
MCP sequence (summary)
getProviderActions { provider: "lighter" }get_lighter_funding_statusand market discovery reads- Onboarding or
get_lighter_setup_status approve_lighter_integratorwhen integrator monetization is active and approval is missing- Orders via
walletExecuteorexecuteIntentwith delegatedlighter_api_key
See Thirdfy MCP for the full recommended sequence.
Hosted deploy
Lighter perps templates are on EarnOrg (docs.earnorg.com). EarnOrg hosts the Hermes runtime; Thirdfy governs execution through the lighter provider.