ivopetiz / algotrading

Algorithmic trading framework for cryptocurrencies.
MIT License
1.05k stars 177 forks source link

no module named cryptoalgotrading #10

Closed Chau1985 closed 3 years ago

Chau1985 commented 3 years ago

When running cryptoalgotrading.py file I get the following error: import cryptoalgotrading.var as var ImportError: No module named var

And other files says there is no module named cryptoalgotrading.

ivopetiz commented 3 years ago

Are you trying to run cryptoalgotrading.py or you got this error importing it? Have you tried the 'How to start' section in README.md?

Chau1985 commented 3 years ago

I have tried two things:

  1. I tried to run test.py file, where I got the message that there is 'no module named cryptoalgotrading'
  2. I also tried running the cryptoalgotrading.py and I got the 'import cryptoalgotrading.var as var ImportError: No module named var' message.

I have followed the README.md till the script section. Actually after that I don't really understand how to activate the program. I am just trying to figure it out with the knowledge I have on Python

ivopetiz commented 3 years ago

You shouldn't run cryptoalgotrading as a program. Instead, you need to import cryptoalgotrading to be able to use it in your programs. Cryptoalgotrading alone will not do anything, it is a lib. You can follow the examples in here. You can run it using Python3, in Ipython or Jupyter notebook for example.