started work on trading (not functional yet)