To calculate the open position cost basis, sum the total cost of all shares or assets purchased in that position, including commissions and fees.
For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/