type fix for empty trade history