PerpMarket Account
Perpetual market configuration and AMM state.Key Fields
u16
Unique market identifier
AMM
Automated market maker state including reserves, oracle, and funding
u32
Initial margin requirement
u32
Maintenance margin requirement
u32
Initial margin fraction factor for size-based scaling
MarketStatus
Market status (ACTIVE, PAUSED, etc.)
ContractType
PERPETUAL or FUTURE
ContractTier
Risk tier (A, B, C, SPECULATIVE, ISOLATED)
SpotMarket Account
Spot market configuration for collateral assets.Key Fields
u16
Unique market identifier
Pubkey
SPL token mint address
Pubkey
Token vault holding deposits
u32
Weight for initial margin calculations
u32
Weight for maintenance margin
u128
Total deposits in the market
u128
Total borrows in the market
u32
Optimal utilization rate for interest
TypeScript Types
Market Types
Full TypeScript interfaces
Perp Markets API
Access market data
Spot Markets API
Spot market methods
Market Concepts
Understanding markets