Market Module

The Market module allows you to create, manage, and interact with market items.

Market flow

Types

export type CreateOrderInput = {
  startAmount: BigInt
  endAmount: BigInt
  startTime: number
  endTime: number
  debtToSell: BigInt
}

Signature

ClientOptions

Functions

Creating a Market Item

To create a market item, use the create function from the market module:

Refer to the Market Module documentation for more details on the create function.

Canceling a Market Item

To cancel a market item, use the cancel function from the market module:

Refer to the Market Module documentation for more details on the cancel function.

Bidding a Market Item

To bid on a market item, use the marketBid function from the market module:

Refer to the Market Module documentation for more details on the marketBid function.

Claiming a Market Item

To claim a market item, use the claim function from the market module:

Refer to the Market Module documentation for more details on the claim function.

Cancel Claiming a Market Item

To cancel a claim on a market item, use the cancelClaim function from the market module:

Refer to the Market Module documentation for more details on the cancelClaim function.

Buy Now Market Item

To do a buy now on a market item, use the buyNow function from the market module:

Refer to the Market Module documentation for more details on the buyNow function.

Last updated