Skip to main content
Perpetual trading events from decentralized perpetual exchanges like Lighter and Gains Network.

Order model

Orders represent perpetual trading activity including market orders, liquidations, limit orders, take profits, and stop losses. Identifier on Mobula: order Supported exchanges: lighter, gains Supported chains: lighter:301, lighter:304, evm:42161 (Arbitrum)

Event Categories

Perps events are divided into three categories based on their structure: 1. Executed Orders (PerpOrderExecuted) - Full trade executions with pricing data 2. TP/SL Updates (PerpTpSlUpdate) - Take profit and stop loss modifications 3. Uncategorized Events (PerpUncategorizedEvent) - Position management events

Field Reference - Executed Orders

Fields available on PerpOrderExecuted events (MARKET_BUY, MARKET_SELL, LIQUIDATION_LONG, LIQUIDATION_SHORT, etc.):

Field Reference - TP/SL Updates

Fields available on PerpTpSlUpdate events (UPDATE_TP, UPDATE_SL):

Field Reference - Uncategorized Events

Fields available on PerpUncategorizedEvent events: Extra data by event type:

Extra Data (Lighter/Gains)

For liquidations and limit orders, additional data is available in the extra field: Example - Liquidation (Long):
Example - Market Order:
Example - Take Profit:
Example - TP/SL Update:
Example - Trade Stored (Uncategorized):

Calculating Position Value

To calculate the USD value of a position:
For Lighter transactions, you can view details on their explorer:
Can’t find what you’re looking for? Reach out to us, response times < 1h.

Support

Telegram

Support

Slack

Need help?

Email