Fetch User's Orders

Fetch a list of user's orders and find the current status of the order.

The 3 possible statuses returned by the API are:

  • Active : Order is open where, filled amount = > 0
  • Completed: Order is filled where, filled amount = order amount
  • Cancelled: Order is filled where, filled amount = > 0

Please also note that a users order could be cancelled for the following reasons:

  • 611 User cancel - Order was cancelled by the user
  • 711 Insufficient funds - If the user places a maker order and does not sufficient amount of token balance in their wallet at the time of order execution, their order is cancelled by the system.
  • 712 Insufficient Allowance - If the user places a maker order and does not sufficient amount of token allowance for the Tegro contract at the time of order execution, their order is cancelled by the system.
  • 811 Auto Cancel due to min match - If often happens that a users order is matched with another order but after trade execution the remaining balance inside the order is less than $2. In such a case, the remaining order is cancelled by the system.
Path Params
string
required
Defaults to 0x3da2b15eB80B1F7d499D18b6f0B671C838E64Cb3

The address of the user's wallet.

Query Params
string
required
Defaults to 8453

The ID of the chain to fetch user's order from

string

(Optional) ID of the market to filter by.

string

(Optional) Status of the orders to filter by [Values - active, completed ,cancelled]. More details can be found below.

int32

(Optional) The page number for pagination.

int32

(Optional) The page size for pagination.

Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json