Published on

Royal Stock Exchange(RSE) - Building a Full Stack Stock Exchange - Part 1

Authors

Royal Stock Exchange(RSE) - Building a Full Stack Stock Exchange - Part 1

Decided to build a stock exchange. I plan to master along the following:

Most importantly I want to learn about the finance industry. I use to think I'd make a million dollars by building an app, don't split energy learning about finance while develop myself as an engineer.

My thinking has evolved. I've come to see that finance is it's own industry that has a countless use cases for IT.

Not to mention the number of fintech companies that exist. NYSE, Fidelity, Coinbase, Robinhood, WeBull, Interactive Brokers, E-Trade, Charles Schwab, the list goes on...

Royal Stock Exchange(RSE) - Part 1

Initial thoughts

  • .NET projects/solutions are collections of smaller "projects".

    • If you're from Node.JS/Rails, this means each project has it's own package.json/Gemfile/dependencies.

    • Notice each project has it's own "Dependencies" directory. API/Common/DataAccess/Services/Tests.

    Project structure

  • We have to stop and restart the solution on each C# change. This is due to it being compiled.

  • Defining of Tables/Models/Entities is verbose.

    namespace DataAccess.Entities;
    public class Stock
    {
        public Stock(string name)
        {
            Name = name;
        }
    
        public int Id { get; set; }
        public string Name { get; set; }
        public decimal Price { get; set; }
        public int Quantity { get; set; }
    }
    
  • I'm going to use a few patterns in this project.