Added `get-trades` function