larytet / larytet-master

Automatically exported from code.google.com/p/larytet-master
0 stars 1 forks source link

Account manager TODO #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The goal is to provide support for managing multiple trading accounts. In
the first phase account manager just collects all trades and allows the
application to get the list of the open positions and the cash balance. 
Following items are calculated
- Cash
- Short
- Margin

Cash accounts are typically not used in the option trading, so the cash
account most often is zero. The cash is stored in the margin account.

There are three groups - Balance, Holdings, Pending orders
In the "balance" table line margin shows free cash and in the "holdings"
table margin shows free cash+current market value of the holdings.

Table "Pending orders" shows the amount of cash (margin) locked by the
pending orders.

In the first phase we are not going to use leverage and thus "buying power"
is equal to the cash part of the margin minus pending orders.

Original issue reported on code.google.com by larytet@gmail.com on 22 Jan 2010 at 5:52

GoogleCodeExporter commented 9 years ago

Original comment by larytet@gmail.com on 22 Jan 2010 at 5:52