tudorelu / pyjuque

⚡ Open Source Algorithmic Trading Bot for Python.
MIT License
456 stars 90 forks source link

Created unittest Framework. Models covered. OrderManagement half way. #4

Closed TimEconometrics closed 3 years ago

TimEconometrics commented 3 years ago

So made a start for the unittests! btw I had to change the name of the exchanges folder as well to Exchanges for the imports to work in all of the files. For some reason it does not show in this pull request. But let me know what you think!

tudorelu commented 3 years ago

Thanks Tim! Yeah I did that too (change exchanges to Exchanges) - but on master - I forgot to do it on this branch too.

TimEconometrics commented 3 years ago

Fixed the bug in toValidQuantity. Also removed the RoundToValidquantity and RoundToValidPrice. As they are duplicates of toValidQuantity and toValidPrice. Ported calls to those deleted methods to the new ones so everything in the backtester keeps working nicely.