If someone bought at a price then someone else sold at the same price. Bitstamp matches buy and sell orders to create trades. Thus each trade consists of a matched buy and sell order (or parts thereof). Thus your trade doesn't tell you if it was a bid or ask because it's a matched pair.
I won't post again because you ask for help yet you won't take it when it's given...