https://github.com/0xnu/trading212
An unofficial Go library for interacting with the Trading212 API.
https://github.com/0xnu/trading212
cfd invest investment investment-analysis investment-portfolio investment-strategies isa stocks
Last synced: 3 months ago
JSON representation
An unofficial Go library for interacting with the Trading212 API.
- Host: GitHub
- URL: https://github.com/0xnu/trading212
- Owner: 0xnu
- License: mit
- Created: 2025-06-29T07:09:33.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-06-29T07:17:10.000Z (3 months ago)
- Last Synced: 2025-06-29T08:25:09.338Z (3 months ago)
- Topics: cfd, invest, investment, investment-analysis, investment-portfolio, investment-strategies, isa, stocks
- Language: Go
- Homepage: https://trading212.com
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
## Trading212
[](https://github.com/0xnu/trading212/actions/workflows/test.yaml)
[](https://github.com/0xnu/trading212/releases/latest)
[](https://goreportcard.com/report/github.com/0xnu/trading212)
[](https://pkg.go.dev/github.com/0xnu/trading212)
[](/LICENSE)An unofficial Go library for interacting with the [Trading212](https://trading212.com) API.
### Generating API Key
Create an API key for Trading212 by following these steps:
+ Click the hamburger menu after logging into your Trading212 account
+ Scroll to the bottom
+ Click the green button "Switch to Practice"
+ Click Settings
+ Click "API (Beta)"
+ Click "Generate API key"### Tests
Execute this command: `make test`
### Demo
+ Update the API Key with your own inside [demo.go](./demo.go)
+ Execute this command: `make run`### Using the Trading212 API
You can read the [API documentation](https://t212public-api-docs.redoc.ly/) to understand what's possible with the Trading212 API.
### License
This project is licensed under the [MIT License](./LICENSE).
### Copyright
(c) 2025 [Finbarrs Oketunji](https://finbarrs.eu). All Rights Reserved.