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

Hello,

I have been investigating the REST API and I have figured out how to create/update pies with weights. What I haven’t figured out is how to invest/withdraw/rebalance money within this pie. Currently everything that I create only has a balance of 0.

Could anyone please tell me whether this is supported and if so, how to do this? Many thanks.

1 Like

Afternoon all, sorry if this has been asked before, and I appreciated T212 has stopped working on the API, but does anyone know if it’s currently working? I’ve created a new API key and tried on:-
https://t212public-api-docs.redoc.ly/
still receiving a 401 bad api key response.
Am I wasting my time?
Thanks
David

Hello,

I’m playing around with the APIs for the first time.

Using the request report endpoint (api/v0/history/exports), you can trigger a CSV to be generated in your account to download.

Is there a way to retrieve the CSV using the reportID using the API?

If not, then to build a similar view would seem to require multiple API calls (e.g. Order History, Dividends) and collating the results.

Thanks for any guidance
Lummers

Hi @lummers,

Despite the name of the functionality, the REST call returns a JSON. Parsing the JSON yields the content of the CVS.

I am wondering how to determine what the type of an transaction is as the enums to me are not clear. When is it a buy, sell, withdrawal, deposit or dividend payment?

Hope someone is willing to explain :slight_smile:

There should be a column called ‘Action’. It shows whether the action is a Deposit, Market buy, Interest on cash, etc.