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 onPerpOrderExecuted events (MARKET_BUY, MARKET_SELL, LIQUIDATION_LONG, LIQUIDATION_SHORT, etc.):
Field Reference - TP/SL Updates
Fields available onPerpTpSlUpdate events (UPDATE_TP, UPDATE_SL):
Field Reference - Uncategorized Events
Fields available onPerpUncategorizedEvent events:
Extra data by event type:
Extra Data (Lighter/Gains)
For liquidations and limit orders, additional data is available in theextra field:
Example - Liquidation (Long):
Calculating Position Value
To calculate the USD value of a position:Explorer Links
For Lighter transactions, you can view details on their explorer:Support
Telegram
Support
Slack
Need help?
Email