-
Notifications
You must be signed in to change notification settings - Fork 102
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
client/front-end: Export orders in csv file #1109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working great for me.
I noticed that the time is local when viewing orders on the browser, but it UTC in the csv. I would prefer csv be the same time zone as the orders screen. But it's not a huge deal, and others may feel differently.
Local time sounds good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking pretty good. Two quick comments before I give it a test.
client/webserver/http.go
Outdated
ordReader.OfferString(), // Offer | ||
ordReader.Type.String(), // Type | ||
ordReader.SideString(), // Side | ||
ord.TimeInForce.String(), // Time in Force | ||
ordReader.StatusString(), // Status | ||
ordReader.SimpleRateString(), // Rate | ||
ordReader.FilledPercent(), // Filled | ||
ordReader.SettledPercent(), // Settled | ||
ordReader.OfferString(), // Quantity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Offer" and "Quantity" are both set to ordReader.OfferString()
. Was "Quantity" supposed to be effectively precision8(ord.Qty)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just copied this from the previous PR, but I've made some changes to the columns now. Let me know what you think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I don't know what was going on with the previous columns. I like this average rate you added, which makes sense when there are multiple matches that aren't necessarily same rate. Really nice.
We'll probably iterate on the csv format going forward, but this is working great and I have no complaints. |
This PR adds a button on the orders page that allows the user to download their orders in CSV format.
Closes #382