nicholishen / pymt5adapter---DEPRECATED

A drop-in pythonic adapter for the MetaTrader5 package to enhance usability.
BSD 2-Clause "Simplified" License
86 stars 31 forks source link

module 'time' has no attribute 'perf_counter_ns' #10

Open tuansacer opened 3 years ago

tuansacer commented 3 years ago

Dear author. I found error when open signal:

  File "D:/MT5.py", line 194, in order_send
    result = mt5.order_send(request)
  File "D:\venv\lib\site-packages\pymt5adapter\core.py", line 64, in pymt5adapter_wrapped_function
    result = use_func(*args, **kwargs)
  File "D:\venv\lib\site-packages\pymt5adapter\core.py", line 42, in wrapper
    timer = time.perf_counter_ns()
AttributeError: module 'time' has no attribute 'perf_counter_ns'

I using: Python 3.6 pymt5adapter 0.4.4 Metatrader5 5.0.34