Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
fix(order dialog): fix limit order
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosantini committed Nov 8, 2016
1 parent 26dd654 commit dfb3df0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client/app/charts/order-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

if (order.type === "LIMIT") {
order.price = vm.quote + "";
order.expiry = new Date(Date.now() + vm.selectedExpire);
order.gtdTime = new Date(Date.now() + vm.selectedExpire);
}

if (isMeasurePips) {
Expand Down Expand Up @@ -195,7 +195,9 @@
toastService.show(message);
} else {
opened = transaction.orderFillTransaction ||
transaction.orderFillTransaction;
transaction.orderFillTransaction ||
transaction.orderCreateTransaction;

side = opened.units > 0 ? "buy" : "sell";
message = side + " " +
opened.instrument +
Expand Down

0 comments on commit dfb3df0

Please sign in to comment.