Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Multiple API & Web UI improvements #1178

Merged
merged 10 commits into from
Jan 23, 2018

Conversation

defkev
Copy link
Contributor

@defkev defkev commented Jan 19, 2018

  • Add momentjs (mainly for date/time humanization)
  • More precise bot uptime (seconds, minutes, hours, days instead of just days)
  • Display trading chart in server time (for consistence with "My Trades" dates)
  • Reduce default trading chart range to 30 minutes (from 60)
  • Sort "My Trades" by date (descending)
  • Change "Executed Date" to "Execution Time"
  • Reduce memory util if API is off
  • Add Total to My Trades
  • API: Populate stats on every new period
  • Color profits (last balance and buy hold) green/red based on win/loss
  • Use singular and plural for trade(s) and day(s)
  • Fix chart 1 hour range selector button
  • Rename "Asset / Currency" widget to "Capital" and move it up to Market row
  • Remove leading space from "Last Balance" widget
  • Add "Error Rate" widget including Win/Loss
  • Format open order dates like complete
  • Fix Market/Capital row layout on mobile
  • API: Always calculate fees
  • API: Add profit calculation (buy/sell, sell/buy) to my_trades, profit won't be calculated unless there was a previous opposide order (buy profit on previos sell, sell profit on previous buy)
  • Add Fee and Profit column to My Trades
  • Normalize number formating for consistence and to remove clutter

dashboard

@firepol
Copy link
Contributor

firepol commented Jan 20, 2018

@defkev Since you worked on this page already, do you think you can add a column in "My trades" for the "Total" (total = amount * price)? That would be useful to have.

@defkev
Copy link
Contributor Author

defkev commented Jan 20, 2018

Good idea @firepol 👍

Copy link
Owner

@DeviaVir DeviaVir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are failing, I'm guessing due to either the changes in engine.js or trade.js

@defkev
Copy link
Contributor Author

defkev commented Jan 21, 2018

Yup, Jasmine is not aware of api

Update conf{} in test/lib/engine.test.js

defkev added a commit to defkev/zenbot that referenced this pull request Jan 22, 2018
@defkev
Copy link
Contributor Author

defkev commented Jan 22, 2018

Merge #1204 and rerun the tests.

defkev added a commit to defkev/zenbot that referenced this pull request Jan 22, 2018
defkev added a commit to defkev/zenbot that referenced this pull request Jan 22, 2018
defkev added a commit to defkev/zenbot that referenced this pull request Jan 22, 2018
@defkev defkev changed the title Multiple Web UI improvements Multiple API & Web UI improvements Jan 22, 2018
DeviaVir pushed a commit that referenced this pull request Jan 23, 2018
@DeviaVir
Copy link
Owner

@defkev would you mind pulling in latest changes from unstable? I think Travis should pass then.

* Add momentjs (mainly for date/time humanization)
* More precise bot uptime (seconds, minutes, hours, days instead of just days)
* Display trading chart in server time (for consistence with "My Trades" dates)
* Reduce default trading chart range to 30 minutes (from 60)
* Sort "My Trades" by date (descending)
* Change "Executed Date" to "Execution Time"
Total = Size * Price
Populate objects used exclusively by the API only if the API is actually enabled.
* Color profits (last balance and buy hold) green/red based on win/loss
* Use singular and plural for trade(s) and day(s)
* Fix chart 1 hour range selector button
Instead of having to manually "print statistical output" in the console to get them updated.
* Rename "Asset / Currency" widget to "Capital" and move it up to Market row
* Remove leading space from "Last Balance" widget
* Limit "vs buy hold" to 10 digits
* Add "Error Rate" widget including Win/Loss
Looks like i forgot something...
* API: Add profit calculation (buy/sell, sell/buy) to my_trades, profit won't be calculated unless there was a previous opposide order (buy profit on previos sell, sell profit on previous buy)
* Web UI: Add Fee and Profit column (Closes DeviaVir#1192)
* Normalize number formating for consistence and to remove clutter
@defkev
Copy link
Contributor Author

defkev commented Jan 23, 2018

Done

Copy link
Owner

@DeviaVir DeviaVir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuff!

@DeviaVir DeviaVir merged commit 7fbbcd4 into DeviaVir:unstable Jan 23, 2018
@defkev defkev deleted the pr-webui-date-and-time branch February 15, 2018 17:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants