added conversion from stockTransaction dict to stockPosition dict