DeXter-on-Radix / website

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

Export orders as CSV #495

Closed dcts closed 1 month ago

dcts commented 1 month ago

Problem

Currently there is no way of exporting orders (open or history) from dexter.

Your Task

I suggest to add a small secondary button "export as csv" below all tables, that allow users to export the data inside the table as CSV.

Bildschirmfoto 2024-07-25 um 00 44 45

Data

The data of all orders can be retrieved from our redux state, especially from accountHistory -> orderHistory.

const { orderHistory } = useAppSelector((state) => state.accountHistory);
console.log({ orderHistory });
nipun-sachintha commented 1 month ago

For testing how we can add orders. Is there any guide relevant to adding active orders and get history

dcts commented 1 month ago

Hi @nipun-sachintha

Yes we have this guide which explains how to setup a wallet and testnet: https://dexter-on-radix.gitbook.io/dexter/stokenet-testing/setup

If you run into any issues please let me know!

dcts commented 1 month ago

@nipun-sachintha Just a side note, once you have the setup and test orders ready, please work on another issue as there is already a PR for this one (#498 by @SiegfriedBz).

dcts commented 1 month ago

Already implemented!