Lighter API/MM Updates
1.02K subscribers
1 photo
1 video
78 links
Official Channel for API and Market-maker updates on Lighter
Download Telegram
Weekly Liquidity Partner Program Update

- added SPY and Korean Stock USD markets
- introduced Korean market hours support
- expanded listings: ZEC, AAVE, MON, ZRO, XPT
- adjusted weekend bps (wider spreads for oil, metals, and Korean markets)

- Liquidity Partner Program docs: https://docs.lighter.xyz/liquidity-partner-program
- Market Tiers week 2: https://docs.google.com/spreadsheets/d/1JMZMEtdVU6_BAGGrEucHPBxDprbXdbWFq9MkJ-5Jqko/edit?gid=684854736#gid=684854736
❀3
We will be performing a network upgrade on April 24, 2026 at 10:00 AM UTC. Expected downtime is under 20 minutes.

Please manage your positions in advance, as order placement will be unavailable during the upgrade.
πŸ‘4
We’ll be doing a brief ~2 minute restart to apply a configuration fix. We will start this at April 24, 2026 at 11:35 AM UTC, so very soon
β€’ You can now paper trade against live order books, and use agent skills: https://x.com/Lighter_xyz/status/2047390606507335937

β€’ The Python SDK has been updated to the 1.0.9 version: https://pypi.org/project/lighter-sdk/

β€’ Block Explorer API queries now return both parties involved in a transaction, e.g. for transfers

β€’ The account endpoint now returns (1) cross_initial_margin_requirement and (2) cross_maintenance_margin_requirement, both can be compared with cross_asset_value to verify (1) margin available to open new positions (2) remaining margin until the liquidation engine kicks in. Full details on margin requirements, and calculations: https://docs.lighter.xyz/trading/liquidations-and-llp-insurance-fund
πŸ‘1
Weekly Liquidity Partner Program Update

This week:
- more weight on U.S. equities this week (earnings season)
- 2x weight for overnight and weekend snapshots

Rewards, week 3:
https://docs.google.com/spreadsheets/d/1JMZMEtdVU6_BAGGrEucHPBxDprbXdbWFq9MkJ-5Jqko/edit?gid=965391833#gid=965391833
πŸ‘3
Lighter's Go SDK has been updated:

- Improved Cross-language FFI examples & bindings (Java, C++, Rust, Wasm)
- Fixed memory leaks for shared libs

Complete details can be found here: https://github.com/elliottech/lighter-go/commit/f9b2c26d9fce53a287b5fee25779a01eaf24c9ec

Additionally, WebSocket limits have been considerably improved:

- You can now subscribe to up to 500 channels per connection, allowing you to track up to 500 unique accounts
- IP-based limits have been increased as well, allowing builders to scale via multiple connections
❀3πŸ‘3
The Internal Pricing mechanism will be updated to use a 30-minute EMA. This change will take effect today at 4PM ET and will apply to all RWA markets.

This update is expected to improve oracle responsiveness and allow funding rates to normalize more efficiently during internal pricing periods.

Updated docs: https://docs.lighter.xyz/trading/real-world-assets-rwas/futures-contract-price-rolling-mechanism
πŸ‘2
We will be delisting the $YZY perp market on May 4, 2026 at 8:00 PM UTC.

All open positions will be settled at market price at that time.
πŸ‘2
Weekly Liquidity Partner Program Update

- reduced incentive pool again from 150k to 120k
- added EWY, MU
- added QQQ
- added SPACEX

Rewards, week 5:
https://docs.google.com/spreadsheets/d/1JMZMEtdVU6_BAGGrEucHPBxDprbXdbWFq9MkJ-5Jqko/edit?gid=1607960023#gid=1607960023
πŸ‘6
- A WebSocket stream for candlesticks is now available: https://apidocs.lighter.xyz/docs/websocket-reference#candlesticks

- The account_all_positions WebSocket channel does not require you to provide an auth anymore: https://apidocs.lighter.xyz/docs/websocket-reference#account-all-positions

- The user_tier_last_update timestamp will now be returned by the accountLimits endpoint: https://apidocs.lighter.xyz/reference/accountlimits
❀3
- You can now filter the positionFunding endpoint by timestamp, instead of solely relying on pagination: https://apidocs.lighter.xyz/reference/positionfunding

- The orderBookDetails endpoint now returns FundingClamp and BaseInterestRate for each perpetual market: https://apidocs.lighter.xyz/reference/orderbookdetails

- The systemConfig endpoint now returns the index from which market maker incentives are paid out: https://apidocs.lighter.xyz/reference/systemconfig

- Filtering behavior for the deposit_history endpoint has been fixed: https://apidocs.lighter.xyz/reference/deposit_history
❀4
We're changing the default self-trade behavior on Lighter from reduce both to cancel maker:

β€’ Current default (reduce both): when a user's order crosses their own resting order, both orders are reduced by the overlap amount.
β€’ New default (cancel maker): the resting order is cancelled in full, and the incoming order continues filling against the rest of the book.

This means that under the new default behavior, your taker order fills as intended against the rest of the book, instead of being silently reduced. The change only affects orders that don't explicitly specify a self-trade behavior. All four modes (cancel maker, cancel taker, cancel both, reduce both) will be allowed as explicit attributes.

The above changes will be effective starting May 31st, 2026 at 8:00 AM ET (timestamp: 1780228800)
❀6
- Lighter's Python SDK has been updated, including all the latest API changes: https://pypi.org/project/lighter-sdk

- The WebSocket connection cap has been increased from 100 to 200 per IP: https://apidocs.lighter.xyz/docs/rate-limits#websocket-limits

- An RFQ section has been added to our API reference: https://apidocs.lighter.xyz/reference. The program is currently in beta and requires whitelisting to be used, you can reach out to us via Discord #support.

- The syntheticSpotInfo endpoint has been added, allowing users to query the current configuration in use for US equity indices: https://apidocs.lighter.xyz/reference/syntheticspotinfo
❀6
We're changing the behavior of the trades endpoint: https://apidocs.lighter.xyz/reference/trades

β€’ Current behavior: both sides of the trade are returned
β€’ New behavior: some counterparty fields will be omitted

For example, if the account_index queried is the maker of the trade, the followings fields won't be returned anymore:

β€’ TakerFee
β€’ TakerPositionSizeBefore
β€’ TakerEntryQuoteBefore
β€’ TakerInitialMarginFractionBefore
β€’ TakerPositionSignChanged
β€’ IntegratorTakerFee
β€’ IntegratorTakerFeeCollectorIndex
β€’ TakerAllocatedMarginUSDCBefore
β€’ TakerAllocatedMarginUSDCAfter

Moreover, only the last 3K trades will be retained, for a given account_index. The export endpoint will still allow to obtain the whole history: https://apidocs.lighter.xyz/reference/export.

The above changes will be effective starting June 7th, 2026 at 8:00 AM ET (timestamp: 1780833600)

Additionally, we have added the markPriceCandles endpoint, allowing users to fetch historical mark price candles: https://apidocs.lighter.xyz/reference/markpricecandles
❀1
Lighter API/MM Updates
We're changing the default self-trade behavior on Lighter from reduce both to cancel maker: β€’ Current default (reduce both): when a user's order crosses their own resting order, both orders are reduced by the overlap amount. β€’ New default (cancel maker):…
The change for default self-trade behavior on Lighter from reduce both to cancel maker has been moved to May 30th, 2026 at 9:00 AM ET (timestamp: 1780146000). Complete details about the change can be found here in the above post.
- Lighter's Python & GO SDKs have been updated on GitHub, supporting explicit attributes for self-trade behavior, following the recent changes: https://t.me/lighter_api_updates/135

- The account index is now shown in the api keys page, and when assigning a new api key pair to an api key index: https://app.lighter.xyz/apikeys

- Builders can leverage this open-source web app to manage integrator approvals, and see how to handle l1 & l2 signing on their end: https://lighter-integrators.up.railway.app/

- As of recently, a l1 signature is not required anymore to approve integrators capped at zero fees, and when revoking approvals for any type of integrator. SDKs will support this in the next release
πŸ‘3
We'll be listing the $SPCX market today. Some notes:

- Global Open Interest Cap: $100M
- Isolated Margin
- Current shares: ~13.08B

Regarding the current pre-IPO $SPACEX market on Lighter:

- The current $SPACEX market on Lighter will get delisted; it should settle next Friday at the close, based on share price Γ— shares outstanding. Once we confirm the final share count, we'll use that to calculate the index price
πŸ‘5❀1
- Mark Price Candlesticks are now available via WebSockets: https://apidocs.lighter.xyz/docs/websocket-reference#mark-price-candlesticks

- Starting June 17th, 11am UTC (timestamp: 1781694000), both ws/candle and ws/mark_price_candle will allow for up to 2 candles in the candles[] array to be sent in a single update when a candle period closes (rolls over). If so, candles[0] will be the oldest, just closed candle.

- The Lighter Python SDK has been updated, and now supports approving a zero fees integrator, and revoking all kind of integrator approvals, just using a l2 signature. Moreover, an example has been provided on how to cancel all orders for a single market: https://pypi.org/project/lighter-sdk/

- The market_stats WebSocket channel now returns best_ask_price, best_bid_price (BBO): https://apidocs.lighter.xyz/docs/websocket-reference#market-stats
Forwarded from Lighter Announcements
gm

Toncoin ($TON) has been renamed to Gram ($GRAM), effective today. This is a rebrand only and does not affect the underlying market. The update will be reflected across the Lighter frontend and backend later today.

On the API side, updates will now be delivered as GRAM, while the market ID remains unchanged. No action is required.
πŸ‘3