OmegaChartのソースコードの保守
Revisão | b2b0cd0f47e457c9d68011ce8f8a7494f7d0baec (tree) |
---|---|
Hora | 2019-04-24 21:44:01 |
Autor | panacoran <panacoran@user...> |
Commiter | panacoran |
データが空のときにYahooから日経平均とTOPIXを取得できないのを直す
Revert "Yahoo時系列から株価を取得するときに上場前の出来高0のデータを取り除く"
This reverts commit bdd136d0b9b36df55a5360f7e4002ae32db8a449.
@@ -110,15 +110,8 @@ namespace Zanetti.DataSource.Specialized | ||
110 | 110 | public void UpdateDataFarm(int code, SortedDictionary<int, NewDailyData> prices) |
111 | 111 | { |
112 | 112 | var farm = (DailyDataFarm)Env.BrandCollection.FindBrand(code).CreateDailyFarm(prices.Count); |
113 | - var empty = farm.IsEmpty; | |
114 | - var skip = true; | |
115 | 113 | foreach (var pair in prices) |
116 | - { | |
117 | - if (empty && skip && pair.Value.volume == 0) | |
118 | - continue; | |
119 | - skip = false; | |
120 | 114 | farm.UpdateDataFarm(pair.Key, pair.Value); |
121 | - } | |
122 | 115 | farm.Save(Util.GetDailyDataFileName(code)); |
123 | 116 | } |
124 | 117 |