HellAmbro / Trading212API

Unofficial Trading212 API
MIT License
59 stars 27 forks source link

got multiple values for argument 'mode' #5

Closed wyne1 closed 2 years ago

wyne1 commented 2 years ago

Hello,

I am trying to use your trading212 API on mac but I keep getting this error related to the mode argument. I am not sure what's going on here, because the Mode.DEMO argument seems to be returning the correct results.

Would really appreciate any help.

Regards

HellAmbro commented 2 years ago

Hi, can you please share the stacktrace of the error?

wyne1 commented 2 years ago
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-47675501f558> in <module>
     23     # driver = webdriver.Firefox()
     24 
---> 25     trading212 = Trading212(email, password, driver, mode="<Mode.DEMO: (0,)>")
     26 
     27     market_order = trading212.execute_order(

TypeError: __init__() got multiple values for argument 'mode'

This is what it shows. Is this what you meant by stacktrace of error?

HellAmbro commented 2 years ago

Hi, thanks for reporting bug, can you please clone again this repository and let me now if the error persists. Note: clone this repository don't use pip for now. If you are missing dependencies i've added requirements.txt

wyne1 commented 2 years ago

Alright, I will try to clone and use it and let you know if the issue persists. Thanks!

HellAmbro commented 2 years ago

Let me know