-
+


| + Welcome + | ++ Home + | ++ Account + | ++ Portfolio + | ++ Quotes/Trade + | ++ Glossary + | ++ Config + | ++ Login/Logout + | +
+
+ Trade Alert:
+ The following orders have completed.");
+ print("
+
"); + } + + /*Display the account summary information of a particular user.*/ + if ($accountSummary) + { + print ("");
+
+ print ("
+
");
+ }
+
+ /*Display the orders a particular user is associated with.*/
+ if ($ordersReturn)
+ {
+ print("");
+ print("
");
+ }
+
+ /*Display the account profile information associted to a
+ the user.*/
+ if ($userAccountProfileDataReturn)
+ {
+ print ("
| Order ID | Order Status | +Creation Date | Completion Date | +Txn Fee | Type | Symbol | +Quantity |
|---|---|---|---|---|---|---|---|
| ".$getClosedOrdersReturn->OrderDataBean[$index]->orderID." | +".$getClosedOrdersReturn->OrderDataBean[$index]->orderStatus." | +".date("m/d/Y h:i:s A", $getClosedOrdersReturn->OrderDataBean[$index]->openDate)." | +".date("m/d/Y h:i:s A", $getClosedOrdersReturn->OrderDataBean[$index]->completionDate)." | +$".$getClosedOrdersReturn->OrderDataBean[$index]->orderFee." | +".$getClosedOrdersReturn->OrderDataBean[$index]->orderType." | +".$getClosedOrdersReturn->OrderDataBean[$index]->symbol." | +".$getClosedOrdersReturn->OrderDataBean[$index]->quantity." |
"); + } + + /*Display the account summary information of a particular user.*/ + if ($accountSummary) + { + print ("
Account Information +
| Subtotal Buys | Subtotal Sells | Subtotal Fees + | Net Impact Cash Balance |
|---|---|---|---|
| $%.2f | ", $accountSummary->totalBuys); + printf("$%.2f | ", $accountSummary->totalSells); + printf("$%.2f | ", $accountSummary->totalTax); + printf(""); + + if ($accountSummary->totalImpact > 0) + { + printf("$%.2f", $accountSummary->totalImpact); + } + else if ($accountSummary->totalImpact < 0) + { + printf("$%.2f", $accountSummary->totalImpact); + } + else + { + printf("($%.2f)", $accountSummary->totalImpact); + } + printf(" |
Total Orders Shown
| Order ID | Order Status | Creation Date | Completion Date + | Txn Fee | Type | Symbol | Quantity | Price + | Total |
|---|---|---|---|---|---|---|---|---|---|
| ".$ordersReturn->OrderDataBean[$index]->orderID." | +".$ordersReturn->OrderDataBean[$index]->orderStatus." | +".date("m/d/Y h:i:s A", $ordersReturn->OrderDataBean[$index]->openDate)." + | ".date("m/d/Y h:i:s A", $ordersReturn->OrderDataBean[$index]->completionDate)." | +$".$ordersReturn->OrderDataBean[$index]->orderFee." | +".$ordersReturn->OrderDataBean[$index]->orderType." | "); + + print (""); + + print (" | ".$ordersReturn->OrderDataBean[$index]->quantity." | +$".$ordersReturn->OrderDataBean[$index]->price." | +$".(($ordersReturn->OrderDataBean[$index]->price * + $ordersReturn->OrderDataBean[$index]->quantity) + + $ordersReturn->OrderDataBean[$index]->orderFee)." |
+
+
+ 