Skip to main content

Core entities

Token

Represents an ERC20 token tradeable on the platform.

Book

Represents an order book for a token pair.

Depth

Represents aggregated liquidity at a specific tick in a book.

OpenOrder

Represents an active limit order. Automatically deleted when fully claimed or canceled. Use this for querying active orders.

Order

Complete order history record. Never deleted from the subgraph.
Use OpenOrder for active orders. Use Order for complete history including fills, claims, and cancels.

Transaction

Represents an on-chain transaction.

Trading events

OrderMovement (Interface)

Common interface for order movements (takes, claims, and cancels).

Trade (Interface)

Common interface for all trade types (both taker and maker).

Take

Represents a taker trade (market order execution) on a book. Implements the Trade and OrderMovement interfaces.

MakerFill

Represents a maker order fill. When a taker executes a trade, it may fill multiple maker orders. Each fill generates a MakerFill record. Implements the Trade interface.

Claim

Represents a claim event when a maker withdraws filled orders from a book. Implements the OrderMovement interface.

Cancel

Represents a cancel event when a maker cancels an order. Implements the OrderMovement interface.

Chart data

ChartLog

Candlestick chart data for trading pairs.

Analytics & statistics

User

Represents a user (EOA) interacting with the protocol.

BookDayData

Daily snapshot of book statistics.

TokenDayData

Daily snapshot of token statistics.

PlatformDayData

Protocol-wide daily statistics.

TransactionTypeDayData

Daily transaction count by type.

RouterDayData

Daily router usage statistics.

UserDayData

Daily user activity statistics.

UserDayVolume

Daily user volume per token.

Fee tracking

Provider

Tracks fees collected by the protocol fee recipient (the primary fee recipient address set on the BookManager).

ProviderTokenFee

Protocol fee recipient’s fees per token.

Referrer

Tracks fees collected by referrers.

ReferrerTokenFee

Referrer fees per token.

PayerReferrerFee

Tracks fee relationship between payer and referrer.

UserFee

Tracks total fees paid by users.