Trading 212 API Update 🛠️

Do you have a timeline of when we can expect this to be added to the other order types lacking this? I’ve seen this issue mentioned several times on this forum, so many of us would be happy if this is added

Can you share with us the priorities you are working on associated with the API so we can prepare for what’s coming?
Thanks.

I have setup mu API key under my account settings and have tried issuing a test request but I keep getting 400 error.

Is this https://demo.trading212.com/api/v0 still up and running?

Could you please try our public skill for using the API - https://github.com/trading212-labs/agent-skills + cursor.

This needs to be investigated further. Please reach out via the official support channel, and we’ll take a closer look.

any updates on this?

@KrisG
For placing the market order using the api. Is it possible to use the amount (in account currency) to place the order? It looks like it currently only supports quantity field. It’s a pain to use current fx rates + current stock price to calculate how much quantity that I want to buy/sell. If there is an amount field, that would be abstract all the complexity for us.

Hi T212,

Can we request additional functionality to add Price Alerts via the API?

Thanks
Mark

This! If I were running an API agent I would prefer alerts to be inserted rather than live trades, or programmed dex/gex based target alerts to trigger my attention.

It would even allow programmatic alerts based on EMA, VWAP, personal cost price etc..

Could you please add the property “stockExchange” to the Instruments and or positions endpoints?

This would help resolve ambiguity when joining with other data sources.

Stoxk exchange example data: LSE, NYSE

Thank you for the API!

dateTime in /equity/history/transactions — what does it represent?

The dateTime returned by the transactions endpoint doesn’t match the actual time the 212 card transaction was made. For example, a purchase at Tesco on 14 Mar at 17:50 shows as 2026-03-14T10:33:14Z in the API, and a Restaurant purchase on 10 Mar at 19:59 shows as 2026-03-11T03:08:26Z.

Could you clarify what dateTime represents? And is there a way to get the actual transaction time and merchant name via the API?

Hi - I have followed all documentation and ensured I have correct API and Secret Key in Practice Mode - Invest Account - but everytime I try to connect to the API I get the message:

401 Client Error - Unauthorised for url: https://demo.trading212.com/api/v0/equity/account/cash

All tickboxes on and no IP restrictions - any ideas what is going on?

Hi,

Im using the API to extract card payments so I can send them to a budgeting app.

I’ve settled on using the export API functionality for now as this extracts the data I need.

I tried using the Get Transactions call, but whilst this does pull the card deposits and withdrawals it doesnt include the merchant name (only a UUID ref), also interest and cashback payments are mixed in without being identified as such.

The export function exports a type field with values of “Card debit” and “Deposit”. I can use these to push deposits and payments to the budget app.

The Get Transactions call or a new one similar would have a few advantages over using the export.

  1. The export sends notifications to the app
  2. The export requires me to handle waiting for the export to be complete
  3. Get Transactions is a paginated result and is a more “API like” way to get data out

Are there any plans to add data to the get transactions endpoint? Or add a new one for pulling card debit and spend?

Thanks

Cannot choose alternate (multi) currency for live trading with Invest account. Nothing in API documentation, any idea why is this or how to set it?

I am learning how to use Trading212’s API to do quantitative trading. There are some examples for placing orders, in which the ticker for ‘AAPL’ is ‘AAPL_US_EQ’, that works fine. But when I try to place orders to UK stocks, such as ‘AZN’ (AstraZeneca), according to API’s get_all_instruments() script, I set the ticker as ‘AZN’ or ‘AZN1_EQ’, that does not work ( error: ticker not found ). Do you have any advice on this?

I have been getting 401 Unauthorized on all API calls for over 24 hours. Account is funded, active, Invest account, GBP base currency, all permissions enabled, no IP restrictions, both live and demo fail. I have verified credentials are correctly formatted. Frontline support have given me contradictory information — one agent said multi-currency was the cause, another said my account isn’t multi-currency. I need a developer to look at account 45212105. Can @KrisG or someone from 212 please investigate?

Update on my 401 issue — I have now generated and tested 6 separate key pairs across both live and demo environments. Every single one returns 401 immediately after generation. Decoded base64 confirms correct formatting. Support keep sending generic credential-check responses despite me proving the keys are correct. Account prefix 45212105. Has anyone else experienced this and found a resolution? @KrisG please can a developer check this account?

Ive been using the api to access my shares/isa accout for a while with no problems.

Now I want to do the same for the invest accoubt. The docs say the api is onyl for the isashrea and invest accounts so thats good, but when i generate and se an API key for the invest accout, i just get a 401 error so theres somehting wrong with authentication. apart from sending a different api key, i dont see anyway of telling the api its the invest account the request is for - probably which authentication fails becasue its using the invest key to access the shares/isa account. so how do i tell it to access the invest account? Anyone done this before?

If its a 401 error, and you’ve exhausted all Client side fixes then its a T212 issue. Youll be waiting a while for a fix.

Im on day 10 of waiting for a fix to the 401 error and all support can tell me is that its being investigated but they dont have an update to pass on.

Thanks - I found out what it was. Make has a new http .module that has a new way of entering a key and secret - calling them username and password!

Its working now.

The endpoints are the same for share/isa and invest accounts. The key tells the api which account to work with.

Hi, does anyone know what the TRANSFER transaction type in the API is for? WITHDRAW, DEPOSIT and FEE are pretty self explanatory, but I don’t know what a transfer is.

I understand this has been discussed before here, and I know the API is still in active development. Is there by now any roadmap or timeline for adding proper multi-currency support for EU accounts via the API — specifically the ability to use an existing USD cash balance for USD stock orders? This would be a game-changer for many EU investors who have set up multi-currency accounts precisely to avoid FX fees.