Skip to content

Commit

Permalink
Merge pull request #12 from ethanopp/v6.3
Browse files Browse the repository at this point in the history
added realized profit and updated changelog
  • Loading branch information
coltoneshaw authored Jun 14, 2021
2 parents 4682ebb + d45b023 commit c7c027f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clasp.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"scriptId":"1twy0xM-fI0q054sWI3smtdqGVgV80FlU_cD2Oc4Bs7jHwr1NsjAWsXyP", "rootDir":"./src"}
{"scriptId":"16hyNOGLBJ4VPf0p_cuYhKj6Q5Lpg4_OSU1UP76O7Uk_UM7A62gWtuTk9", "rootDir":"./src"}
5 changes: 5 additions & 0 deletions src/2-CHANGELOG.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
CHANGE LOG
## v6.3
- Added a realized profit field to filter out active deals showing negative.
- Fixed the calculation from `onEdit` to `onEdit / 1 minute`
- Fixed total profit by pair to include active deals.
## v6.2
### Spreadsheet Changes
Expand Down
2 changes: 1 addition & 1 deletion src/3commas.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async function get3cdeals() {
account_id,
bot_id,
'created_at (UTC)': Utilities.formatDate(new Date(created_at), "UTC", "MM-dd-yyyy"),
'open_1': null,
'realized_actual_profit_usd': (status === "active") ? null : +actual_usd_profit,
'closed_at (UTC)': (closed_at != null) ? Utilities.formatDate(new Date(closed_at), "UTC", "MM-dd-yyyy") : null,
'deal_hours': dealHours,
completed_safety_orders_count,
Expand Down

0 comments on commit c7c027f

Please sign in to comment.