• Creates a new buy/sell order

    Returns

    InstructionReturn

    Parameters

    • side: "sell" | "buy"

      Order side

    • program: GalacticMarketplaceIDLProgram

      GalacticMarketplace Program Anchor program

    • orderAccount: PublicKey

      The publicKey of the order account created for this order, must exist already

    • price: BN

      The price in base units

    • originationQty: number

      Quantity to sell or buy in base units

    • initializerDepositTokenAccount: PublicKey

      depositMint token account

    • initializerReceiveTokenAccount: PublicKey

      receiveMint token account

    • depositMint: PublicKey

      What the user is depositing, e.g. currency if buying, item if selling

    • receiveMint: PublicKey

      What the user wants in exchange, e.g. item if buying, currency if selling

    • currencyMint: PublicKey

      The currency, must be registered already in the program

    • orderInitializer: AsyncSigner<unknown>

      AsyncSigner creating the order

    • openOrdersCounter: PublicKey

      Should exist for the depositMint

    Returns InstructionReturn

Generated using TypeDoc