Hi,
I tried many endpoints with my ApiKey but no result, always 401. Iâm quite experienced with APIs and I know how to use the Postman app and such.
Did I miss something? Like, should I crypt the API key with SH265 or anything like that?
Hi @trevordb ,
Make sure you have given your API key permissions for the functionality you want to use. And if you are using Postman, add you API key to the Authorization section â API Key â Value.
Hi, thank you for your reply.
I did everything you mention above.
Here is my basic request on the Trading 212 Platform.
I copied the API key from the mobile app, freshly created.
Here is the result and the authorisations that I gave to the API key on the pic.
I also tried different endpoints such as Account Data, Portfolio etc. All gives 401
Iâm wondering if is this because Iâm a new user.
I tried on Postman secondarily.
Essentially it should work on the official debug panel here.
Any advice?
(I merged all in one photo due to the forum restrictions.)
yes. as you would integrate any other json api. in vba you have a few options but the one I always opt for is the CreateObject(âMSXML2.XMLHTTPâ) then just call the endpoint with your key and parse the return
It seems like there is rate-limiting applied to API requests. Iâm seeing this after sending approx 30 API requests in the last few hours. Iâm using a demo/paper account:
{âcodeâ:âBusinessExceptionâ,âcontextâ:{âtypeâ:âTooManyRequestsâ},âerrorMessageâ:âtoo many requestsâ}
Can someone advise what the limit is, and if there is a way to increase it?
Hi, just as many people on here, Iâm very grateful for the API, thank you.
My question is about the execution of orders, could we get an update on how far this feature is until release (on non-demo accounts)? or at least how the pipeline looks like? are there many things you are developing before releasing this feature?
Hey everyone, itâs been a while. We are currently not working on the public api. Our priorities have shifted a little bit and we will postpone our fixes and features for this project. We will update you when we have news for you.
Thanks for your understanding!
Thats sad
I was hoping that i could use this API to get market data on instruments that i donât yet have an open position on.
I guess that is not going to happen