# Jack 2021Q1季報 [TOC] ## 工作項目 1. 新API實作 2. 新聞爬蟲測試優化 3. 籌碼預測大盤模型 4. AIGO全API壓力測試 5. 大盤籌碼資料數據驗證 6. WebServer Docker 部署 7. 正式機資料庫模型資料轉移 8. API版本控管實作 ### API系統壓測 ![](https://i.imgur.com/UVBwTGO.png) ### API實作 1. `Correlation` : 個股籌碼相關性 2. `DayTrading` : 當沖Top10預測列表 3. `PTTStockArticle` : PTT股版文章 4. `Securities` : 分點券商相關係數 ``` === RUN TestDayTrading --- PASS: TestDayTrading (0.01s) === RUN TestCorrelation --- PASS: TestCorrelation (0.01s) === RUN TestLinkageV1 --- PASS: TestLinkageV1 (0.01s) === RUN TestPttStockArticle --- PASS: TestPttStockArticle (0.01s) === RUN TestSecurities --- PASS: TestSecurities (0.01s) PASS ok mtk-fss-webservice 0.657s ``` ### API版本控管 * API版本管控 * 舊版 API ``` { "LastUpdateTime": "20210414082112", "LinkageStock": [ { "Coefficient": "0.96", "Rank": "1", "StockId": "2327" }, { "Coefficient": "0.96", "Rank": "2", "StockId": "8086" }, { "Coefficient": "0.96", "Rank": "3", "StockId": "3711" }, { "Coefficient": "0.96", "Rank": "4", "StockId": "2428" }, { "Coefficient": "0.96", "Rank": "5", "StockId": "4968" }, { "Coefficient": "0.95", "Rank": "6", "StockId": "2360" }, { "Coefficient": "0.95", "Rank": "7", "StockId": "3443" }, { "Coefficient": "0.95", "Rank": "8", "StockId": "6417" }, { "Coefficient": "0.95", "Rank": "9", "StockId": "3552" }, { "Coefficient": "0.94", "Rank": "10", "StockId": "3665" } ] } ``` * Header 加入 `APIVer:1.0.0` 以上 ``` { "LastUpdateTime": "20210414082112", "NegativeLinkageStock": [ { "Coefficient": "-0.96", "Rank": "1", "StockId": "8418" }, { "Coefficient": "-0.95", "Rank": "2", "StockId": "8477" }, { "Coefficient": "-0.95", "Rank": "3", "StockId": "4911" }, { "Coefficient": "-0.94", "Rank": "4", "StockId": "6690" }, { "Coefficient": "-0.94", "Rank": "5", "StockId": "3629" }, { "Coefficient": "-0.93", "Rank": "6", "StockId": "1227" }, { "Coefficient": "-0.92", "Rank": "7", "StockId": "6624" }, { "Coefficient": "-0.91", "Rank": "8", "StockId": "5345" }, { "Coefficient": "-0.91", "Rank": "9", "StockId": "4712" }, { "Coefficient": "-0.91", "Rank": "10", "StockId": "4106" } ], "PositiveLinkageStock": [ { "Coefficient": "0.96", "Rank": "1", "StockId": "2327" }, { "Coefficient": "0.96", "Rank": "2", "StockId": "8086" }, { "Coefficient": "0.96", "Rank": "3", "StockId": "3711" }, { "Coefficient": "0.96", "Rank": "4", "StockId": "2428" }, { "Coefficient": "0.96", "Rank": "5", "StockId": "4968" }, { "Coefficient": "0.95", "Rank": "6", "StockId": "2360" }, { "Coefficient": "0.95", "Rank": "7", "StockId": "3443" }, { "Coefficient": "0.95", "Rank": "8", "StockId": "6417" }, { "Coefficient": "0.95", "Rank": "9", "StockId": "3552" }, { "Coefficient": "0.94", "Rank": "10", "StockId": "3665" } ] } ``` ## 學習成長 1. 後端API版本控管 2. 系統壓測優化 3. 大型資料庫檔案轉移 ## 未來工作 1. AIGo策略優化 2. 股票相關係數計算優化 3. 凱莉公式交易策略研究與設計