Our Trading 212 API, previously exclusive to demo users, is now accessible for real money account holders. You can generate multiple tokens with different permission levels for each application or service. Currently, order execution isn’t available, but we plan to enable it soon.
You can create API tokens by visiting your account settings in the platform’s web version. Management in mobile will be available soon.
We value your feedback on the following aspects:
Usability: Is the API intuitive? Can we improve the documentation?
Features: What additional features or data endpoints would you like added?
Performance: Feedback on response time and reliability.
Security: Thoughts on the token permission system and suggestions for enhanced security?
Your feedback will guide improvements for current and future versions. Thank you for participating in this development. We appreciate your input.
You always comes through with amazing stuff for free, it’s seriously mind-blowing! Thank you so much for that.
I was going through the documentation and noticed that we can only place orders using your internal tickers, right? All the examples I saw had something like “ticker”: “AAPL_US_EQ”. It would be awesome if we had the option to use something more universal like the ISIN or a more widely recognized identifier.
Fetching the account cash (/api/v0/equity/account/cash) I can see that the returned total is not the same as the amount in “Account Value”, in the app’s header. Is there a delay to the API value (or vice-versa)?
Also, what does ppl mean? Comparing with the data in the app, I can see it’s the current return, but it would be nice to have the definition in the API docs.
Enjoying the API so much
I have a suggestions for starters. https://t212public-api-docs.redoc.ly/#operation/orders_1 It would be super helpful if we had a way to handle the returned data. Your web uses filters like olderThan this way we would only be able to request smaller chunks of data.
Also, what is the default ordering for the orders history api? Seems like date desc but would be great to have a bit more visibility.
Edit: It would be super useful to have an action field just like the CSV download. Any you might consider making this a filter as well. This way, a user can achieve what they wanted with less requests
filledQuantity seem to be NULL and when mapped with UI I can see the data for this field. Yes, the docs mention “Applicable to quantity orders” but then there is no way to understand how much I purchased.
Quick example to illustrate;
I purchased Apple, paid £3 and 0.0218819 is my Filled Qty.
The order filled for $171.15. If I knew the exchange rate at the time, I could find my filled quantity. But the api is missing exchange rate so I cannot get filled quantity.
I mean if there is away to calculate this, maybe Im missing it
Not sure dateExecuted is intentionally null
dateModified and dateCreated not users local time The web UI return 18 May 2023, 15:01 and API return 2023-05-18T14:01:37.000Z
Would love to be able to take advantage of using this to automate some of my portfolio tracking, just dont have the time to play with it. if anyone finds a portfolio tracker tool or has some tips on how I can pull simple info like Holdings / Portfolio value etc to Excel/CSV automated or has any websites utilising this API then please let me know