DeXter-on-Radix / website

Community built order book dex on Radix.
https://dexteronradix.com/
Other
14 stars 21 forks source link

Account history pagination #144

Closed EvgeniiaVak closed 3 months ago

EvgeniiaVak commented 1 year ago

When account history grows it enlogates the page indefinitely, we need to add pagination and maybe always show fixed number of rows to prevent page jumping when clicking from open orders with small number of orders to order history.

nguvictor commented 1 year ago

@fliebenberg does the sdk provide pagination?

fliebenberg commented 1 year ago

The response from the API/SDK will limit results to 100. If there are more than 100 orders, the result from the API will include a "nextItem" field which you can use as the "startFrom" field in your next query. In the SDK, the getAccountOrders function takes an optional "from" parameter, which is the same as the "startFrom" field mentioned above.

dcts commented 3 months ago

Closing as this is a duplicate of https://github.com/DeXter-on-Radix/website/issues/483