Please and very much please an API even a very basic one

It can very simple for the beginning and I think for the foreseeable future following compromises are acceptable:

  • no time series, only quotes on shares/etfs/FX
  • depending on demand quotes can be cached/stale for 5/10/20/30 minutes etc.
  • depending on demand api access can be provided to users holding only over a certain amount of value in their account
  • api access should be rate limited (not sure 50 per minute?)

2nd phase can include

  • ability to put limit buy/sell orders (market orders without up to date quotes might be dangerous for users)
  • ability to cancel existing orders
  • ability to query current free funds
  • ability to query portfolio holdings.

Since most of these features already exist in mobile app, I am sure there are api’s already working for all of these and more. It is a question of rate limiting and opening these apps to your users I suppose.

10 Likes

Has been requested a few times but seems like a low priority for T212 team shame as I think there lot of people of asking now

I think it’d be a faily “easy-win” for the team since they already have the api’s. All that needs to be done is authenticate some api’s for users and rate limit them as liberally or conservatively as they wish.

@kali, thanks for your interest! I do get where you’re coming from and it will be really awesome to have a public API.

This, however is not that easy and simple. Having an API and a publicly available API are two quite different stories.
Just publishing some endpoints and their signatures with some flows guidelines won’t do the job.
Our current APIs are scaled for our apps. If we do a public version we would have to also create rate limiting for each specific endpoint by the accounts that are requesting them. We have quite a few endpoints and limiting them properly is really labour intensive and adding an additional footprint to our current load.
There is also the matter of change management. When we launch a public API we would do so with a proper documentation and endpoint deprecation schema. This requires work. Consider our current method of changing/adding or removing endpoints: we just do it internally and that’s that. The proper way for a public API dictates that this must happen with prior notifications to the APIs users, time for them to react and chasing people that forget to do so.
This is related to peoples’ money so we can’t just break something and let the users’ figure it out on their own.

That being said. We will have a PROPER API. But we do have some kick-ass features that we would like to launch before we do that. All we ask for is patience…

21 Likes

Thanks @noop would be great even if had a basic export function in the interim I think this will help a lot people, even the none technical ones. And may take some heat off for the APIs appreciate the hard work keep up the good work T212 team

1 Like

An export functionality will be implemented soon enough. Quite sooner than the API.

3 Likes

thanks for update, hoping soon is a few months away :slight_smile:

Dont forget to vote for API :grin:

1 Like

From: https://community.trading212.com/t/protect-your-account-with-two-factor-authentication

1 Like

That’s on CFD - that’s been there forever for ProQuant integration :wink:

Sorry to disappoint!

1 Like

oh that was hard on me :broken_heart: :cry:

1 Like

+1 for API on ISA account.

Even a separate basic one for now just to query current holdings and prices etc.

2 Likes

API would be amazing, I wouldn’t mind paying a small monthly fee for decent access. If you need beta testers lmk.

There’s a basic enough (unofficial) python API on github: https://github.com/BenTimor/Trading212API

2 Likes

That is not even remotely an api…

Saw this one on here as well, am still trying to figure out how it works

Well, it is an API, not a great one, but it is an API.

I can imagine that the team still is working tirelessly on everything related to pies but after all recently added features is there any chance that we could receive a timeline or approximation for when an API could become available?

1 Like

Agreed, an official API so we can integrate it with other applications would be amazing.
Having a third party API is so insecure (who dares to ask a user for his login and password for this stuff)

1 Like

Does any other broker have an API service out there?

For me it would be key that any potential API access meets the following requirements:

  1. Does not impact service on current UI.
  2. Has a test environment key. That way while people test out their coding, it doesn’t impact the live environment.

An API service out there that springs to mind for me, is the Betfair API. It is free for development, but the access key is £299. I don’t think there are any more charges, but then Betfair take a cut of every single bet, so that is probably where the revenue is driven to provide the API service long term.

There are ways that the API can be designed to minimise calls, and limit poor user implementations but poor coding from the user end cannot be fully removed.

2 Likes