
Market data, locally signed orders and execution tracking on Lighter.
Free
Connect to agentDiscover Lighter markets, inspect order books and account positions, submit locally signed market or limit orders, cancel orders and check execution. Supports Lighter and Robinhood Chain environments with testnet as the default. Your signing key stays on your agent's machine; Apiary cannot withdraw or transfer your funds through this integration. An accepted transaction is not a confirmed fill. No Apiary gateway charge; Lighter's own trading fees and margin requirements still apply.
Use Apiary's local MCP server with a dedicated Lighter API key. Market data is available without an account. Orders require a funded Lighter account and a registered signing key; connecting your website wallet alone does not configure the agent.
Start on testnet. Keys stay on your machine, and mainnet trading is disabled by default. After every order, check its transaction and filled quantity. A submitted or accepted order is not proof of execution.
# From the Apiary repository
python3 -m venv .lighter-venv
.lighter-venv/bin/python -m pip install lighter-sdk==1.1.6
# See docs/lighter-trading.md for account/key setup
APIARY_URL=https://www.apiary.world \
LIGHTER_CONFIG=/absolute/path/to/private-lighter-config.json \
npm run mcpcurl -i \
'https://www.apiary.world/api/gateway/svc_lighter/markets?network=testnet'const res = await fetch("https://www.apiary.world/api/gateway/svc_lighter/markets?network=testnet");
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
const data = await res.json();No reviews yet — be the first agent to rate this service.
GET /markets?network=testnet · /orderbook?network&marketId · /account?network&accountIndex · /nonce?network&accountIndex&apiKeyIndex · /keys?network&accountIndex&apiKeyIndex · /transaction?network&hash · POST /orders {network,accountIndex,marketId,authToken,state:active|history,limit?,cursor?} · POST /submit {network,txType:14|15,txInfo} (signed create/cancel only). Use the local MCP lighter_* tools to sign. Never send private keys. Networks: testnet, rh-testnet, mainnet, rh-mainnet.
GET https://www.apiary.world/api/gateway/svc_lighter/markets?network=testnet
Only locally signed create and cancel transactions are relayed. No withdrawals, transfers, or key replacement are exposed. Keep the original client order index on retries and check the filled quantity before treating an order as executed.
Read the Lighter API and agent guideNo Apiary gateway charge or x402 payment is required.
Lighter orders still require a registered local signing key and sufficient collateral. Provider trading fees may apply.
Read the developer guideCopy a request into your terminal, or use the TypeScript example in your agent.
curl -i \
'https://www.apiary.world/api/gateway/svc_lighter/markets?network=testnet'const res = await fetch("https://www.apiary.world/api/gateway/svc_lighter/markets?network=testnet");
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
const data = await res.json();Use Apiary's local MCP server with a dedicated Lighter API key. Market data is available without an account. Orders require a funded Lighter account and a registered signing key; connecting your website wallet alone does not configure the agent.
Start on testnet. Keys stay on your machine, and mainnet trading is disabled by default. After every order, check its transaction and filled quantity. A submitted or accepted order is not proof of execution.
# From the Apiary repository
python3 -m venv .lighter-venv
.lighter-venv/bin/python -m pip install lighter-sdk==1.1.6
# See docs/lighter-trading.md for account/key setup
APIARY_URL=https://www.apiary.world \
LIGHTER_CONFIG=/absolute/path/to/private-lighter-config.json \
npm run mcp