Address of the Serum DEX market
Number of decimals of the base token
Base token multiplier
Base vault address of the market
Commitment option (used in the connection object)
Event queue address of the market
Market state
Address of the orderbook or AAOB market
Asset agnostic orderbook state
Serum program ID of the market
Number of decimals of the quote token
Quote token multiplier
Quote vault address of the market
Preflight option (used in the connection object for sending tx)
Return the market address
Returns the asks address (AOB program) of the market
Returns the number of decimals of the quote spl-token
Returns the mint address of the base token
Returns the base vault address of the market
Returns the bids address (AOB program) of the market
Returns the event queue address of the market
Returns the market state
Returns the min order size of the market
Returns the orderbook address of the market
Returns the orderbook state
Returns the Serum program ID of the market
Returns the number of decimals of the quote spl-token
Returns the mint address of the quote token
Returns the quote vault address of the market
Returns the tick size of the market
The solana connection object to the RPC node
The transaction to sign and send
The signers of the transaction
Returns the signature of the signed and sent transaction
Returns the base token multiplier
Returns the inception base volume
The solana connection object to the RPC node
The id of the order to cancel
The owner of the order
The signature of the cancel transaction
The solana connection object to the RPC node
The index of the order in the open order account
The owner of the order
The signature of the cancel transaction
The orderbook of the market
The openOrder that owns the orders
Slab to extract open orders from
Open orders account
Fetch the associated token account of the owner for the base token of the market
The public key of the owner
The public key of the associated token account of the owner
This method returns the fee discount keys assuming (M)SRM tokens are held in associated token account.
The solana connection object to the RPC node
The public key of the (M)SRM owner
An array of { pubkey: PublicKey, mint: PublicKey, balance: number, feeTier: number }
Fetch the open order account of the owner
The public key of the owner
The public key of the open order account
Fetch the associated token account of the owner for the quote token of the market
The public key of the owner
The public key of the associated token account of the owner
The solana connection object to the RPC node
The decoded asks of the market
The solana connection object to the RPC node
The decoded bids of the market
The solana connection object to the RPC node
The deserialized event queue of the market
The solana connection object to the RPC node
Optional limit parameters to the number of fills fetched
The solana connection object to the RPC node
The owner of the orders to fetch
The index of the order in the open order account
The owner of the order
Returns a TransactionInstruction to place an order
The side of the order (cf Side enum)
The limit price of the order
The size of the order
The type of the order (cf OrderType enum)
The behavior of the order in case of self trade (cf SelfTradeBehavior enum)
The token account of the owner of the wallet placing the trade (owner)
The owner of the order
Optional (M)SRM token account for fee discount
Returns a TransactionInstruction object
Owner of the funds to settle
The owner base token account
The owner quote token account
Returns the timestamp of the market creation
Sign and send a place order transaction
The solana connection object to the RPC node
The side of the order (cf Side enum)
The limit price of the order
The size of the order
The type of the order (cf OrderType enum)
The behavior of the order in case of self trade (cf SelfTradeBehavior enum)
The token account of the owner of the wallet placing the trade (owner)
The owner of the order
Optional (M)SRM token account for fee discount
The signature of the transaction
Returns the quote token multiplier
Returns the inception quote volume
The solana connection object to the RPC node
The owner of the funds to settle
The owner base token account
The owner quote token account
The signature of the settle transaction
The solana connection object to the RPC node
Address of the Serum market to load
Program ID of Serum
MarketOptions object (skipPreflight and Commitment)
Returns a market object
Generated using TypeDoc
A Serum DEX Market object