Get deposit history of all sub-accounts with API

We can get deposit history of one sub-account via API. But anyone know How to get deposit history of all sub-accounts? I am trying to get deposit histories in one API request.

Hi there,

Unfortunately you can’t get all sub-accounts deposit history in 1 request. You’ll need to make one call for each subaccount using the GET /sapi/v1/capital/deposit/subHisrec endpoint