MarkGalloway / wealthsimple-trade

Unofficial API docs for the Wealthsimple Trade API
MIT License
99 stars 14 forks source link

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

Open artem055 opened 4 years ago

artem055 commented 4 years ago

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

SUPRVLLAN commented 4 years ago

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

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

Etc.

ieh-hei commented 3 months ago

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