Skip to content

Commit

Permalink
chore: Update DLL (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeDongGeon1996 authored Jan 24, 2022
1 parent 9e018f4 commit b948292
Show file tree
Hide file tree
Showing 41 changed files with 7 additions and 205 deletions.
Binary file modified stock_indicators/_cslib/lib/Skender.Stock.Indicators.dll
Binary file not shown.
4 changes: 0 additions & 4 deletions tests/test_adl.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_adl(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_adl(quotes[:1])
4 changes: 0 additions & 4 deletions tests/test_adx.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_adx(quotes, 1)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_adx(quotes[:159], 30)
5 changes: 0 additions & 5 deletions tests/test_alligator.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,3 @@ def test_removed(self, quotes):
assert 260.98953 == round(float(r.jaw), 5)
assert 253.53576 == round(float(r.teeth), 5)
assert 244.29591 == round(float(r.lips), 5)

def test_exceptions(self, quotes):
from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_alligator(quotes[:114])
4 changes: 0 additions & 4 deletions tests/test_alma.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_alma(quotes, 10, .5, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_alma(quotes[:10], 11, .5)
4 changes: 0 additions & 4 deletions tests/test_aroon.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_aroon(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_aroon(quotes[:29], 30)
4 changes: 0 additions & 4 deletions tests/test_atr.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_atr(quotes, 1)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_atr(quotes[:129], 30)
5 changes: 0 additions & 5 deletions tests/test_awesome.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_awesome(quotes, 25, 25)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_awesome(quotes[:33], 5, 34)

7 changes: 0 additions & 7 deletions tests/test_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,3 @@ def test_exceptions(self, quotes, other_quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_beta(quotes, other_quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_beta(quotes[:29], other_quotes[:29], 30)

with pytest.raises(BadQuotesException):
indicators.get_beta(quotes, other_quotes[:300], 30)
4 changes: 0 additions & 4 deletions tests/test_bollinger_bands.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_bollinger_bands(quotes, 2, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_bollinger_bands(quotes[:29], 30, 2)
4 changes: 0 additions & 4 deletions tests/test_bop.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_bop(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_bop(quotes[:24], 25)
4 changes: 0 additions & 4 deletions tests/test_cci.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_cci(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_cci(quotes[:30], 30)
7 changes: 0 additions & 7 deletions tests/test_chaikin_oscillator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_chaikin_osc(quotes, 10, 5)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_chaikin_osc(quotes[:109], 3, 10)

with pytest.raises(BadQuotesException):
indicators.get_chaikin_osc(quotes[:499], 3, 250)
4 changes: 0 additions & 4 deletions tests/test_chandelier.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_chandelier(quotes, 25, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_chandelier(quotes[:30], 30)
4 changes: 0 additions & 4 deletions tests/test_chop.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_chop(quotes, 1)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_chop(quotes[:30], 30)
6 changes: 0 additions & 6 deletions tests/test_cmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_cmf(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_cmf(quotes[:20], 20)


4 changes: 0 additions & 4 deletions tests/test_connors_rsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_connors_rsi(quotes, 3, 2, 1)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_connors_rsi(quotes[:102], 3, 2, 100)
12 changes: 1 addition & 11 deletions tests/test_correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,7 @@ def test_removed(self, quotes, other_quotes):
assert 0.8460 == round(float(last.correlation), 4)
assert 0.7157 == round(float(last.r_squared), 4)

def test_exceptions(self, quotes, other_quotes, mismatch_quotes):
def test_exceptions(self, quotes, other_quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_correlation(quotes, other_quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_correlation(quotes[:29], other_quotes[:29], 30)

with pytest.raises(BadQuotesException):
indicators.get_correlation(quotes, other_quotes[:300], 30)

with pytest.raises(BadQuotesException):
indicators.get_correlation(mismatch_quotes, other_quotes, 20)
4 changes: 0 additions & 4 deletions tests/test_donchian.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_donchian(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_donchian(quotes[:30], 30)
9 changes: 1 addition & 8 deletions tests/test_double_ema.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ def test_removed(self, quotes):
last = results.pop()
assert 241.1677 == round(float(last.dema), 4)

def test_exceptions(self, quotes, longish_quotes):
def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_double_ema(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_double_ema(quotes[:159], 30)

with pytest.raises(BadQuotesException):
indicators.get_double_ema(longish_quotes[:749], 250)
4 changes: 0 additions & 4 deletions tests/test_dpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_dpo(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_elder_ray(quotes[:10], 11)
7 changes: 0 additions & 7 deletions tests/test_elder_ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_elder_ray(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_elder_ray(quotes[:129], 30)

with pytest.raises(BadQuotesException):
indicators.get_elder_ray(quotes[:499], 250)
7 changes: 0 additions & 7 deletions tests/test_ema.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_ema(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_ema(quotes[:129], 30)

with pytest.raises(BadQuotesException):
indicators.get_ema(quotes[:499], 250)
4 changes: 0 additions & 4 deletions tests/test_epma.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_epma(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_epma(quotes[:9], 10)
5 changes: 0 additions & 5 deletions tests/test_fcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_fcb(quotes, 1)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_fcb(quotes[:60], 30)

4 changes: 0 additions & 4 deletions tests/test_fractal.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_fractal(quotes, 1)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_fractal(quotes[:10], 5)
6 changes: 0 additions & 6 deletions tests/test_heikin_ashi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,3 @@ def test_to_quotes(self, quotes):
def test_bad_data(self, bad_quotes):
r = indicators.get_heikin_ashi(bad_quotes)
assert 502 == len(r)

def test_exceptions(self, quotes):
from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_heikin_ashi(quotes[:1])

5 changes: 0 additions & 5 deletions tests/test_ichimoku.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_ichimoku(quotes, 9, 26, 26)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_macd(quotes[:51], 9, 26, 52)

7 changes: 0 additions & 7 deletions tests/test_macd.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_macd(quotes, 12, 26, -1)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_macd(quotes[:409], 12, 200, 5)

with pytest.raises(BadQuotesException):
indicators.get_macd(quotes[:134], 12, 26, 9)
8 changes: 3 additions & 5 deletions tests/test_parabolic_sar.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def test_exceptions(self, quotes):
indicators.get_parabolic_sar(quotes, 0, 1)

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_parabolic_sar(quotes, 6, 2)
indicators.get_parabolic_sar(quotes, 0.02, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_parabolic_sar(quotes[:1], 0.02, 0.2)

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_parabolic_sar(quotes, 6, 2)
5 changes: 0 additions & 5 deletions tests/test_roc.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,5 @@ def test_exceptions(self, quotes):
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_roc(quotes, 14, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_roc(quotes[:10], 10)




5 changes: 0 additions & 5 deletions tests/test_rsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_rsi(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_rsi(quotes[:129], 30)

4 changes: 0 additions & 4 deletions tests/test_slope.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_slope(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_slope(quotes[:29], 30)
4 changes: 0 additions & 4 deletions tests/test_sma.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_sma(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_sma(quotes[:9], 10)
4 changes: 0 additions & 4 deletions tests/test_sma_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,3 @@ def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_sma_extended(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_sma_extended(quotes[:9], 10)
4 changes: 0 additions & 4 deletions tests/test_stdev_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_stdev_channels(quotes, 20,0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_stdev_channels(quotes[:19], 20, 2)
4 changes: 0 additions & 4 deletions tests/test_stoch.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_stoch(quotes, 14, 3, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_stoch(quotes[:32], 30, 3, 3)
4 changes: 0 additions & 4 deletions tests/test_stoch_rsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_stoch_rsi(quotes, 14, 14, 3, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_stoch_rsi(quotes[:129], 30, 30, 5, 5)
4 changes: 0 additions & 4 deletions tests/test_super_trend.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,3 @@ def test_exceptions(self, quotes):

with pytest.raises(ArgumentOutOfRangeException):
indicators.get_super_trend(quotes, 7, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_super_trend(quotes[:129], 30)
9 changes: 1 addition & 8 deletions tests/test_triple_ema.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ def test_removed(self, quotes):
last = results.pop()
assert 238.7690 == round(float(last.tema), 4)

def test_exceptions(self, quotes, longish_quotes):
def test_exceptions(self, quotes):
from System import ArgumentOutOfRangeException
with pytest.raises(ArgumentOutOfRangeException):
indicators.get_triple_ema(quotes, 0)

from Skender.Stock.Indicators import BadQuotesException
with pytest.raises(BadQuotesException):
indicators.get_triple_ema(quotes[:189], 30)

with pytest.raises(BadQuotesException):
indicators.get_triple_ema(longish_quotes[:999], 250)
Loading

0 comments on commit b948292

Please sign in to comment.