Currently there is only one place to store access tokens "accesstoken.json", its either TDA or Tradestation tokens stored, . This causes 2 problems
1) No way to easily switch brokerage accounts, without relogging in.
2) When we upgrade to allow Equities trading through TD while simultaneously allowing futures trading through TS, we will need to have this in place.
Solution:
Create a file per trading platform, TDA_AccessToken.json and TS_AccessToken.json.
AccessTokens will get stored in the Appropriate Helper class.
Helper classes will be responsible for refreshing tokens, and not rely on timer code in UI.
Currently there is only one place to store access tokens "accesstoken.json", its either TDA or Tradestation tokens stored, . This causes 2 problems
1) No way to easily switch brokerage accounts, without relogging in. 2) When we upgrade to allow Equities trading through TD while simultaneously allowing futures trading through TS, we will need to have this in place.
Solution: Create a file per trading platform, TDA_AccessToken.json and TS_AccessToken.json.
AccessTokens will get stored in the Appropriate Helper class.
Helper classes will be responsible for refreshing tokens, and not rely on timer code in UI.