注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
# Design Robinhood
## Requirement
### Function Requirement
* User create profile
* Show stock report/history
* Sell and buy stock
* Transfer money
* Reinvestment dividend
* Automactically trade stock
* Watchlist
* View account statement and history
#### Buy
1. buy in shares or money
2. Conditional order
- limit price
- Market hour/extended hour
- expire
#### View order
### NonFunction Requirement
1. Millions of req
2. thousands of stock
3. GEO
4. HA
5. Scale
6. Fairness
7. Reliability
8. Durability
9. Robustness to bad clients
10. Security
### Architecture
#### Matching Engine
Buy QTY, Buy price, Sell QTY, Sell price,
Mathc: Buy price >= Sell Price
Buy : Decreasing order
Sell : Increasing order
1. Add, Cancel, Split, Match Order
2. In-Memory and Serializable.
3. Near real time.
#### Order
## Reference
Robinhood API : https://readthedocs.org/projects ... wnloads/pdf/latest/
Robinhood Stock Github: https://github.com/jmfernandes/robin_stocks
|