public void GetsOpenInterestList() { DailyDownloader dl = new DailyDownloader(); var ret = dl.GetOpenInterestLists(pageMode); Assert.IsTrue(ret.Count > 0); Assert.IsTrue(dl.CallsDictionary.Count > 0); Assert.IsTrue(dl.PutsDictionary.Count > 0); }
public void GetsOpenInterestList() { DailyDownloader dl = new DailyDownloader(); var ret = dl.GetOpenInterestLists(pageMode); Assert.IsTrue(ret.Count > 0); Assert.IsTrue(dl.CallsDictionary.Count > 0); Assert.IsTrue(dl.PutsDictionary.Count > 0); }
public void GetsOpenInterest_OutMoneyCall() { DailyDownloader dl = new DailyDownloader(); string filename = dl.StorageFolder.Replace("{pageMode}", pageMode); using (StreamReader sr = new StreamReader(filename)) { var ret = dl.GetOpenInterestLists(sr, pageMode); } var value = dl.ComputeCallValue(2080, 2075, true); Assert.IsTrue(value == 0); }
public void PainForCurrentValue() { DailyDownloader dl = new DailyDownloader(); string filename = dl.StorageFolder.Replace("{pageMode}", pageMode); using (StreamReader sr = new StreamReader(filename)) { var ret = dl.GetOpenInterestLists(sr, pageMode); } var value = dl.ComputePainForPrice(2080, pageMode); Assert.IsTrue(value > 0); }
public void GetsOpenInterestListFromStream() { DailyDownloader dl = new DailyDownloader(); dl.GetHeaderDictionary(pageMode); string filename = dl.GetRowListFilename(pageMode); using (StreamReader sr = new StreamReader(filename)) { var ret = dl.GetOpenInterestLists(sr, pageMode); } Assert.IsTrue(dl.CallsDictionary.Count > 0); Assert.IsTrue(dl.PutsDictionary.Count > 0); }
public void GetsOpenInterestListFromStream() { DailyDownloader dl = new DailyDownloader(); dl.GetHeaderDictionary(pageMode); string filename = dl.GetRowListFilename(pageMode); using (StreamReader sr = new StreamReader(filename)) { var ret = dl.GetOpenInterestLists(sr, pageMode); } Assert.IsTrue(dl.CallsDictionary.Count > 0); Assert.IsTrue(dl.PutsDictionary.Count > 0); }
public void GetsOpenInterest_InMoneyCall() { DailyDownloader dl = new DailyDownloader(); string filename = dl.StorageFolder.Replace("{pageMode}", pageMode); using (StreamReader sr = new StreamReader(filename)) { var ret = dl.GetOpenInterestLists(sr, pageMode); } var value = dl.ComputeCallValue(2075, 2080, true); Assert.IsTrue(value > 0); Assert.IsTrue(value == 3585); }
public void PainForCurrentValue() { DailyDownloader dl = new DailyDownloader(); string filename = dl.StorageFolder.Replace("{pageMode}", pageMode); using (StreamReader sr = new StreamReader(filename)) { var ret = dl.GetOpenInterestLists(sr, pageMode); } var value = dl.ComputePainForPrice(2080, pageMode); Assert.IsTrue(value > 0); }