Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

PerpsEventSortBy

Sort order for indexer event queries.

Definition

class PerpsEventSortBy(StrEnum):
    BLOCK_HEIGHT_ASC = "BLOCK_HEIGHT_ASC"
    BLOCK_HEIGHT_DESC = "BLOCK_HEIGHT_DESC"

Construction

from dango.utils.types import PerpsEventSortBy
 
sort = PerpsEventSortBy.BLOCK_HEIGHT_DESC

Notes

  • The indexer only accepts these two values; no ordering by other fields.
  • BLOCK_HEIGHT_DESC is the server-side default and matches the Python kwarg default.

See also