Creates a new DeepBookClient instance
Key of the pool
The key of the BalanceManager
A promise that resolves to an object containing the account information
The on-chain addresses of the BalanceManagers
Keys of the coins to check balances for
Object keyed by manager address, mapping coinType to balance
Key of the pool
Key of the balance manager
Array of order details
Key of the pool
Quote quantity to convert
An object with quote quantity, base out, quote out, and deep required for the dry run
Key of the pool
Lower bound of the price range
Upper bound of the price range
Whether to get bid or ask orders
An object with arrays of prices and quantities
Key of the pool
Number of ticks from mid-price
An object with arrays of prices and quantities
The key to identify the margin manager
Array of order details
Map of marginManagerId -> poolKey
Number of decimal places for formatting (default: 9)
Object keyed by managerId
The key to identify the margin manager
Number of decimal places to show (default: 6)
The base and quote debts
The key to identify the margin manager
Number of decimal places to show (default: 6)
Comprehensive margin manager state
Map of marginManagerId -> poolKey
Number of decimal places for formatting (default: 6)
Object keyed by managerId with state data
Key of the pool
Order ID
A promise that resolves to an object containing the order information
Key of the pool
Order ID
A promise that resolves to an object containing the order information with normalized price
The key identifying the pool from which to retrieve order information.
List of order IDs to retrieve information for.
A promise that resolves to an array of order objects, each containing details such as
balance manager ID, order ID, client order ID, quantity, filled quantity, fee information, order price, epoch, status,
and expiration timestamp. Returns null if the retrieval fails.
Transaction to add price update commands to
Array of coin keys to update prices for
Map of coinKey -> priceInfoObjectId
Key of the pool
Base quantity to convert
Quote quantity to convert
An object with base quantity, quote quantity, base out, quote out, and deep required for the dry run
Key of the pool
Base quantity to convert
An object with base quantity, base out, quote out, and deep required for the dry run
DeepBookClient class for managing DeepBook operations.