wealthsimple-trade icon indicating copy to clipboard operation
wealthsimple-trade copied to clipboard

Cannot get all orders or all activities (only getting last 20)

Open artem055 opened this issue 4 years ago • 2 comments

trying ws.get_orders() or ws.get_activities() and only get last 20 orders or activities how to get all orders ? or all activities ?

artem055 avatar Sep 09 '20 21:09 artem055

Look into pagination: https://developers.wealthsimple.com/

GET /activities?limit=20 GET /activities?limit=20&offset=20 GET /activities?limit=20&offset=40

Etc.

Valinaut avatar Sep 09 '20 21:09 Valinaut

i have the same issue and the offset of any number just returns the same 20 response = self.TradeAPI.makeRequest("GET", f"account/activities?limit=20") print(response.json()['results']) response1 = self.TradeAPI.makeRequest("GET", f"account/activities?limit=20&offset=20") print(response1.json()['results']) sorry I'm aware this is 4 years old

ieh-hei avatar Jul 19 '24 23:07 ieh-hei