Flow
get a list of stocks -> fetch from backend which will fetch from IB
buy a stock -> frontend will call blockchain: approve + create buy order
-> backend will listen for CreateBuyEvent? from blockchain
-> backend will trigger buying stock from IB for a given USDC at a current market price
-> backend will call blockchain: mint token to the user
sell a stock -> frontend will call blockchain: approve + create sell order
-> backend will listen for CreateSellEvent? from blockchain
-> backend will trigger selling stock from IB for a current market price
Oct 19, 2021・Contributed by