Creates a new buy/sell order with Solana connection
Takes a connection to fetch necessary accounts - it is preferred to use initializeOrder
if account data can be provided without an RPC connection.
Returns
InstructionReturn
Parameters
connection: Connection
the Solana connection
side: "sell" | "buy"
Order side
orderInitializer: AsyncSigner<unknown>
AsyncSigner creating the order
price: BN
price In base units
originationQty: number
Quantity to sell or buy
itemMint: PublicKey
the mint of the item being sold or bought
currencyMint: PublicKey
The currency, must be registered already with the program
Creates a new buy/sell order with Solana connection Takes a connection to fetch necessary accounts - it is preferred to use
initializeOrder
if account data can be provided without an RPC connection.Returns
InstructionReturn