If you bought at the bid, it was recorded as a sell. If you bought at the ask, it was recorded as a buy.