It mostly depends on whether you were at the bid or the ask. If your order is filled at the bid it will show as a sell a trade at the ask will be a buy.