New Equity Trading API in Beta - Try it Out in Practice Mode!

I have only problem with Equity Order

https://live.trading212.com/api/v0/equity/orders/market

I use POST with my API key
Body is:
{
“quantity”: 0.1,
“ticker”: “BP”
}
But always 403 error is displayed.
Is it me or this endpoint is under investigation?

My API key is functionning for other actions.

Hi there @GeorgiL! Thank you very much for all the help. Is there any estimation on when you will resume the API project?

Thanks!

Hey, just wondering if it’s possible to create a trading bot that swing trades on an SMA indicator - for simplicity where it buys and sells the entire balance based on the indicator. I’m not someone who understands python unfortunately - but is this possible with an API - if so how would I implement this? Excuse my ignorance regarding this subject - but it would be good to create a bot to trade in and out the stock position (based on an sma) as it is impossible to do this manually unless you were sat there permanently watching the chart and manually placing that order. Any info on if this is possible, and if so how to go about creating a custom bot API - would be greatly appreciated!!

We are currently overwhelmed with new features and functionalities. This one is a low priority for the moment, but hopefully in the near future, after our big releases, we will focus on the Public API.

1 Like

What code does 212 use for the self balancing feature? Looking for a way to implement it via the API. Just testing in demo mode.

I’m looking to place an order, is there any way to accomplish this?
I can create a pie but, there is no way to set the investment on it.
I can fetch the equity orders, but I can’t place an equity order.
Is it API or me, I don’t know.
Is anyone able to place an order?

Hi, I wanted to know if there was any way we can confirm if Trading 212 covers a stock.
Right now I find stocks on Finviz and manually search them on Trading212 to see if they are covered.
I wanted to automate this process, I have looked at the API but I don’t see anything promising there. So I just wanted to know if this data existed somewhere we could access or if there is an existing solution to this problem.

Thanks,

You can’t place a pie order but I’ve managed to place an equity market order in Python (buy and sell) but cannot get it to work in PHP (i get internal errors).

We do not provide specific information about the code used for the self-balancing feature or offer direct access to it via the API. The self-balancing feature is an automated function within the Trading 212 platform that helps maintain a desired asset allocation based on your investment preferences. It is not available for manual implementation or customization through the API.

On the live environment, you can’t place orders as the API is in read-only mode.

You can fetch instruments using the public API via: https://t212public-api-docs.redoc.ly/#tag/Instruments-Metadata.

.

Hi, how often is your instrument list for the API updated?
https://t212public-api-docs.redoc.ly/#operation/instruments

The instrument list is updated every 10 minutes.

Dividends path doesn’t seem to produce any data. I’ve tried multiple tickers. Has the URL changed since this document was uploaded?

Any plans to implement CFD API as well?

Are there any new or upcoming updates for our beloved API? :slight_smile:

Hey, @minasm - unfortunately, nothing has changed since this reply :point_down:

We’ll notify everyone once we resume working on the API or fix any of the currently known issues :pray:

hello @Momchil.G thanks for the reply!

Hi guys - this looks pretty good and seems to work fine.

A few suggestion from my perspective so I can really start using this feature :

Is it possible to have the exchange as part of the metadata for the instruments ? or is there a way to derive it ?

And more importantly …

Could we have the ability to rebalance a pie ? At the moment the API only allow us to modify but it has to be rebalanced separately or at least that is my understanding

Keep up the good work !!

Hi @breiko83 and @ollie :wave: I’m afraid all such plans are currently on hold until we start actively working on the Public API again.

1 Like

Hello! I just opened ISA Account, but I couldnt manage to find a page to generate API token. There is no button in settings as suggested in instruction.

Any help is much appreciated

Welcome to the Community, @pavelianonis :tada:

The API is available on both Invest and ISA. To generate it via the web or mobile app, you can go to Account Menu > Settings > API (Beta) > Generate API key. I’m also attaching screenshots of how the menu looks.

Send me a DM if you’re unable to see the button, and I’ll take a closer look right away :face_with_monocle: