% # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. %>
Trade Alert: The following orders have completed.
Order ID | Order Status | Creation Date | Completion Date | Txn Fee | Type | Symbol | Quantity |
---|---|---|---|---|---|---|---|
<%=order["orderID"]%> | <%=order["orderStatus"]%> | <%=openDate%> | <%=completionDate%> | $<%=order["orderFee"]%> | <%=order["orderType"]%> | <%=order["symbol"]%> | <%=order["quantity"]%> |
<%=order["orderID"]%> | <%=order["orderStatus"]%> | <%=openDate%> | <%=completionDate%> | $<%=order["orderFee"]%> | <%=order["orderType"]%> | <%=order["symbol"]%> | <%=order["quantity"]%> |
Subtotal Buys | Subtotal Sells | Subtotal Fees | Net Impact Cash Balance |
---|---|---|---|
<%=@accountSummary["totalBuys"] %> | <%=@accountSummary["totalSells"] %> | <%=@accountSummary["totalTax"] %> | <% if (@accountSummary["totalImpact"].to_i > 0) %> <%=@accountSummary["totalImpact"]%> <% elsif (@accountSummary["totalImpact"].to_i < 0) %> <%=@accountSummary["totalImpact"]%> <% else %> <%=@accountSummary["totalImpact"]%> <% end %> |
Total Orders Shown
Order ID | Order Status | Creation Date | Completion Date | Txn Fee | Type | Symbol | Quantity | Price | Total |
---|---|---|---|---|---|---|---|---|---|
<%=order["orderID"]%> | <%=order["orderStatus"]%> | <%=openDate%> | <%=completionDate%> | <%=order["orderFee"]%> | <%=order["orderType"]%> | <%=order["quantity"]%> | $<%=order["price"]%> | $<%="%.2f" % ((order["price"].to_f * order["quantity"].to_i) + order["orderFee"].to_f)%> | |
<%=order["orderID"]%> | <%=order["orderStatus"]%> | <%=openDate%> | <%=completionDate%> | <%=order["orderFee"]%> | <%=order["orderType"]%> | <%=order["quantity"]%> | <%=order["price"]%> | <%="%.2f" % ((order["price"].to_f * order["quantity"].to_i) + order["orderFee"].to_f)%> |