GenerateNU / Algo

Fullstack application for the Algo project
6 stars 0 forks source link

Add SyncPortfolio and GetPortfolio endpoints #34

Closed jakobphilippe closed 3 months ago

jakobphilippe commented 3 months ago

Description

Adds /etrade/sync/:user_id and /etrade/portfolio/:user_id

The sync endpoint retrieves and adds all the current positions in all of the user's etrade accounts to our db and returns the list of positions. The get portfolio endpoint simply returns the list of current positions from our db.

How Has This Been Tested?

Tested manually by calling the /etrade/sync/:user_id endpoint in both sandbox and prod environments.

Change below here. If this is a frontend MR, include screenshots

Add here

Checklist

leoRysing commented 3 months ago

Once the summary sync is done, this pr is good too merge 👍