Closed peterferguson closed 3 years ago
@peterferguson have you found a better solution than this package to automate tasks on Trading212?
@peterferguson have you found a better solution than this package to automate tasks on Trading212?
@Neugierdsnase
Nope I quite like this solution actually. If you just log into your trading212 and switch to the old app first in the drop down this library works like a charm.
The fix is fairly simple and the main class makes it easy to interact with the webdriver so any features that are missing are easy to add. I have added things like extraction of portfolio value, cash value and a list of stocks currently held.
Hey :) Sorry for answering late. I'm a little busy this days. I'm hoping to refactor all of this project to use requests instead of selenium so it'll be faster and it'll support design changes more easily.
I'll try to do it ASAP :)
Note: It's fixed for now thanks to @peterferguson , But I still want to make the library work with requests instead of selenium so we won't have bugs like this one. I've started a new job so it's gonna take some time.
If someone wants to contribute and develop it, he's welcome and I'll really appreciate it :)
Note: It's fixed for now thanks to @peterferguson , But I still want to make the library work with requests instead of selenium so we won't have bugs like this one. I've started a new job so it's gonna take some time.
If someone wants to contribute and develop it, he's welcome and I'll really appreciate it :)
Hey @BenTimor, I would like to get involved in this have you started working on the requests implementation yet?
Note: It's fixed for now thanks to @peterferguson , But I still want to make the library work with requests instead of selenium so we won't have bugs like this one. I've started a new job so it's gonna take some time. If someone wants to contribute and develop it, he's welcome and I'll really appreciate it :)
Hey @BenTimor, I would like to get involved in this have you started working on the requests implementation yet?
Thanks! :) I've just started investigating the requests Trading212's client sending to their server. Still couldn't reproduce any of them on Python requests, I guess they're looking for something like localStorage which I haven't trying to send yet.
When I (or you) have something ready, we should put it on a different branch and start working on it. :)
setup
method fails on a timeout after login since toaccount-menu-button
is no longer a CSS element in the new app.A simple solution (as an intermediary to switching to new api) would be to use the
Switch to the old app
button as part of setup. The HTML for the button isor xpath
or css selector
or css path