How to detect if a filled order was a short call?

When querying the balances, I get some balances returned with a negative quantity (because I am shorting these stocks). However, when I get all orders, my short calls are being returned with a positive quantity (“qty” & “filled_qty”). How can I distinguish a filled sell position (where I bought the stock before) from a filled sell position where I borrowed the stock?

I often find myself wishing there was a tie between a position and an order (or set of orders) by id(s) but there isn’t that I am aware of…