Module common

Module common 

Source
Expand description

Common functionality shared across the dYdX adapter.

This module provides core utilities, constants, and data structures used throughout the dYdX integration, including:

  • Authentication: Wallet credential storage and message signing for dYdX v4.
  • Common enumerations: dYdX-specific enums mirrored from REST/WebSocket payloads.
  • Constants: Venue identifiers, broker IDs, and scaling factors.
  • Parsing utilities: Helpers for converting dYdX data to Nautilus types.
  • URL management: Environment-aware base URL resolvers for testnet and mainnet.
  • Common models: Shared data structures used across HTTP and WebSocket layers.
  • Testing helpers: Fixtures and utilities for unit tests.

Modulesยง

consts
Core constants shared across the dYdX adapter components.
credential
dYdX credential storage and wallet-based transaction signing helpers.
enums
Enumerations mapping dYdX v4 concepts onto idiomatic Nautilus variants.
models
Common types and models for the dYdX adapter.
parse
Parsing utilities that convert dYdX payloads into Nautilus domain models.
urls
URL helpers for dYdX services.