Trading 212 API Update 🛠️

yes. because you’ll see both the transaction that creates the event and you’ll see the net position in your portfolio overview change

Since writing this it appears to have been fixed, as of this weekend, the “total” field matches my Value in the website.

I would not be surprised if they never do, because it looks like they never fixed it for their own app. I’d even go so far as to suggest that they can’t.

Their app web based app, at least, stores a look-up table called cashtagsV2 (IIRC) (or it might be the one beginning or ending with ‘diff’) in LocalStorage that looked like it contains a translation table for symbols that have been renamed for whatever reason.

It’s just JSON so perhaps you could look at that and see if it would provide the fix you need.

That’s a serious shortcoming, IMO, which I hope is rectified soon. I never use market orders in the ordinary course of trading.

Does anyone know how to access the api key/secret for ISA accounts? The option appears not to exist in the settings menu for ISA but the docs clearly state it should be available for Stocks ISA accounts as well as Invest (where I have it working). Am I missing something here?

In any case I’m enjoying this so far for some experiments on how to best manage my account. I’m just looking at how I can use it more widely.

I will also add my name to the ring for asking for more order types than just Market as we currently have. I’m sure it’s on its way but worth adding another voice to this.

Awesome to see progress on the API! I notice the new docs pages doesn’t mention the old Pie endpoints? Have these been removed from the api or is this a mistake on the new

The Pie endpoints are set to be deprecated and will no longer receive updates. We’ll update the docs to clearly mark these as “deprecated.”

Why? The Pie features are incredibly useful/

2 Likes

Hi! Loving the API so far but im wondering if we will get limit orders in Live anytime soon? I have an algo I want to implement but it requires placing limit orders so best I can do right now is doing market orders when the price hits the mark

1 Like

Hi all,

Noticed in the new docs there is no mention of creating a pie programmatically.

But in the old docs the API endpoint is still there.

Is this behaviour still support?

New docs: General Information
Old docs: Trading212 Public API Docs

Can we request to ‘un-deprecate’ the Pie endpoints?

They are extremely useful and would love to see them in the production api release.