![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
This is an unofficial selenium based API for 'Trading212' broker. Neither me and neither Trading212 are responsible for the API, You are responsible for your actions and for using the API.
Additionally, Note the Trading212 'Robo Trading' agreement.
The API is still WIP, I don't know if and how it's going to work on your computer. But you're more than welcome ot open and issue and I'll try to help as much as I can.
pip install trading212
CFD mode:
from Trading212 import CFD
trading = CFD(email, password) # For practice
trading = CFD(email, password, panel=Panel.Real) # For real money
Invest mode:
from Trading212 import Invest
trading = Invest(email, password) # For practice
trading = Invest(email, password, panel=Panel.Real) # For real money
First of all, You have to know that the API currently uses the display name of the stocks.
trading.buy_stock(stock, amount)
trading.sell_stock(stock, amount) # Available for CFD only
trading.close_position(stock)
trading.result(stock)
trading.position_info(css_class)
You can get anything that's written in the bar. I've added a picture with source code so you'll be able to select the class.
FAQs
This package is an unofficial API for Trading212.
We found that Trading212 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.