bukosabino/ta

Decimal Type Support

H3adlock opened this issue · 0 comments

File "D:\Projects\StockExchange\stocks\management\commands\sync_nse_technicals.py", line 24, in handle
    nse_history_data["mfi"] = MFIIndicator(
  File "D:\Projects\StockExchange\venv\lib\site-packages\ta\volume.py", line 369, in __init__
    self._run()
  File "D:\Projects\StockExchange\venv\lib\site-packages\ta\volume.py", line 372, in _run
    typical_price = (self._high + self._low + self._close) / 3.0
  File "D:\Projects\StockExchange\venv\lib\site-packages\pandas\core\ops\common.py", line 65, in new_method
    return method(self, other)
  File "D:\Projects\StockExchange\venv\lib\site-packages\pandas\core\arraylike.py", line 113, in __truediv__
    return self._arith_method(other, operator.truediv)
  File "D:\Projects\StockExchange\venv\lib\site-packages\pandas\core\series.py", line 4998, in _arith_method
    result = ops.arithmetic_op(lvalues, rvalues, op)
  File "D:\Projects\StockExchange\venv\lib\site-packages\pandas\core\ops\array_ops.py", line 189, in arithmetic_op
    res_values = _na_arithmetic_op(lvalues, rvalues, op)
  File "D:\Projects\StockExchange\venv\lib\site-packages\pandas\core\ops\array_ops.py", line 149, in _na_arithmetic_op
    result = _masked_arith_op(left, right, op)
  File "D:\Projects\StockExchange\venv\lib\site-packages\pandas\core\ops\array_ops.py", line 111, in _masked_arith_op
    result[mask] = op(xrav[mask], y)
TypeError: unsupported operand type(s) for /: 'decimal.Decimal' and 'float'

Is there a chance that you will be adding decimal type support?