Separated the class structure
* `Index` - no authentication is needed, deals with showing details of supported assets
* `API` - authentication is necessary, deals with getting ticker history from API, getting address from postcode, validating bank, onboarding a new user account.
* `DataStore` - authentication is necessary, deals with saving, updating and loading price histories of stocks
`Index`
If you want to get information about the supported list of stock tickers, it is not necessary to log in anymore.
See example:
python
from freetrade import FreeTrade
ft = FreeTrade()
assets = ft.index.get_assets()
`API`
However, other classes such as `API` and `DataStore` require authentication.
Below is an example:
python
from freetrade import FreeTrade
email = '...'
ft = FreeTrade(email)
postcode = 'E15JL'
address = ft.api.get_address_by_postcode(postcode)
prices = ft.api.get_ticker_history('TSLA', 'XNAS')
for history_date, price in prices.items():
print(f'{history_date}: ${price:.2f}')