-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: New rpc call export_swaps_csv #785
Comments
Thanks for opening the issue!
This will allow avoiding huge RAM usage on requesting big data set: 1 UUID in string format takes 36 bytes so maximum memory usage will be I will do it today. |
…filter Add all_swaps_uuids_by_filter RPC #785.
I've added the new RPC, docs diff: KomodoPlatform/developer-docs@542c768. Release will be published by CI soon. |
Is your feature request related to a problem? Please describe.
Related to #784
In the same idea since the pagination is from mm2 side now, the swaps export is no longer correct for
atomicdex-desktop
.Describe the solution you'd like
I would like to have a rpc call
export_swaps_csv
that can take same filtering parameters as #784 + a path for saving the file.I don't know how answer would look like but you can return
{"result": "success"}
in case of success or the whole csv as plain text.I will share how i implemented it in C++:
Example of a csv file:
Describe alternatives you've considered
Fetch all the swaps once, and then apply filtering myself then exporting the visible history, but with huge swaps history this cost too much memory and this is slow.
Additional context
Maybe related to the fact that MM2 plan to move DB to smth like:
embedded DB like SQLite
, will be easier to use filtering in this caseAlso related to KomodoPlatform/komodo-wallet#621
The text was updated successfully, but these errors were encountered: