trade-battles-legacy

For the app to work it needs two api keys that are inside /server/models/config

The first one you can get from https://iexcloud.io The second one from https://polygon.io

For the database you will need 3 tables: users, battles and transactions.

users:

user_id: text PRIMARY KEY first_name: text last_name: text battles: text[] transactions: text[] photo: text email: text current_gain_loss: jsonb watchlist: text[]

battles:

battle_id: text PRIMARY KEY battle_members: text[] start_date_timestamp: text end_date_timestamp: text battle_name: text

transactions:

transaction_id: text PRIMARY KEY battle_id: text user_id: text action: text symbol: text price: numeric quantity: numeric transaction_timestamp: text