Finance Bay 3.1.7 fixes one important bug in CSV import. Transactions brought in from a CSV file were all being treated as buys, including the sells. That is now corrected.
If you imported a file on an earlier version and your positions look wrong, re-import it on 3.1.7. The import guide explains the supported formats.