• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

OmegaChartのソースコードの保守


Commit MetaInfo

Revisãobdd136d0b9b36df55a5360f7e4002ae32db8a449 (tree)
Hora2014-08-19 23:14:29
Autorpanacoran <panacoran@user...>
Commiterpanacoran

Mensagem de Log

Yahoo時系列から株価を取得するときに上場前の出来高0のデータを取り除く

Mudança Sumário

Diff

--- a/Yahoo.cs
+++ b/Yahoo.cs
@@ -147,8 +147,15 @@ namespace Zanetti.DataSource.Specialized
147147 public void UpdateDataFarm(int code, SortedDictionary<int, NewDailyData> prices)
148148 {
149149 var farm = (DailyDataFarm)Env.BrandCollection.FindBrand(code).CreateDailyFarm(prices.Count);
150+ var empty = farm.IsEmpty;
151+ var skip = true;
150152 foreach (var pair in prices)
153+ {
154+ if (empty && skip && pair.Value.volume == 0)
155+ continue;
156+ skip = false;
151157 farm.UpdateDataFarm(pair.Key, pair.Value);
158+ }
152159 farm.Save(Util.GetDailyDataFileName(code));
153160 }
154161