% # 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"]%> |
Order <%= (@buyReturn && @buyReturn["orderID"] != nil) ? @buyReturn["orderID"]: @sellEnhancedReturn["orderID"] %> to <%= (@buyReturn && @buyReturn["quantity"] != nil) ? "buy " + @buyReturn["quantity"]: "sell " + @sellEnhancedReturn["quantity"] %> shares of s:0 has been submitted for processing.
Order Details:
Order ID | Order Status | Creation Date | Completion Date | Txn Fee | Type | Symbol | Quantity |
---|---|---|---|---|---|---|---|
<%=@buyReturn["orderID"]%> | <%=@buyReturn["orderStatus"]%> | <%=dateTime%> | Pending | $<%=@buyReturn["orderFee"]%> | <%=@buyReturn["orderType"]%> | <%=@buyReturn["symbol"]%> | <%=@buyReturn["quantity"]%> |
<%=@sellEnhancedReturn["orderID"]%> | <%=@sellEnhancedReturn["orderStatus"]%> | <%=dateTime%> | Pending | $<%=@sellEnhancedReturn["orderFee"]%> | <%=@sellEnhancedReturn["orderType"]%> | <%=@sellEnhancedReturn["symbol"]%> | <%=@sellEnhancedReturn["quantity"]%> |
Symbol | Company | Volume | Price Range | Open Price | Current Price | Gain(Loss) | Trade |
---|---|---|---|---|---|---|---|
<%=@quotesReturn["symbol"]%> | <%=@quotesReturn["companyName"]%> | <%=@quotesReturn["volume"]%> | $<%=@quotesReturn["low"]%>-$<%=@quotesReturn["high"]%> | $<%=@quotesReturn["open"]%> | $<%=@quotesReturn["price"]%> | <% if (@quotesReturn["change"].to_f > 0) %> $<%="%.2f" % @quotesReturn["change"]%> <% elsif (@quotesReturn["change"].to_f < 0) abs_change = -1 * @quotesReturn["change"].to_f %> $<%="%.2f" % (abs_change)%> <% else %> $<%=@quotesReturn["change"]%> <% end %> |
Symbol | Company | Volume | Price Range | Open Price | Current Price | Gain(Loss) | Trade |
---|---|---|---|---|---|---|---|
<%=quotesReturn["symbol"]%> | <%=quotesReturn["companyName"]%> | <%=quotesReturn["volume"]%> | $<%=quotesReturn["low"]%>-$<%=quotesReturn[">high"]%> | $<%=quotesReturn["open"]%> | $<%=quotesReturn["price"]%> | <% if (quotesReturn["change"].to_f> 0) %> $<%="%.2f" % quotesReturn["change"]%> <% elsif (quotesReturn["change"].to_f< 0) abs_ret = -1 *quotesReturn["change"].to_f %> $<%="%.2f" % (abs_ret)%> <% else %> $<%=quotesReturn["change"]%> <% end %> |