# Collective2 API version 3 released

**URL:** <https://forums.collective2.com/t/collective2-api-version-3-released/8384>\
**Category:** C2 Software Development\
**Created:** [January 13, 2016, 5:14pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384 "2016-01-13T17:14:52Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatthewKlein](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/matthewklein/32/21382_2.png) [@MatthewKlein](https://forums.collective2.com/u/MatthewKlein)\
**Post date:** [January 13, 2016, 5:14pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/1 "2016-01-13T17:14:52Z")

</div>

Attention C2 Programmers -

We’ve just published documentation on the latest version of the C2 API. You can read more about it here:

[https://collective2.com/api-docs/latest](https://collective2.com/api-docs/latest)

---

<div class="post-metadata">

**Author:** ![c2-auto-trader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/c2-auto-trader/32/21425_2.png) [@c2-auto-trader](https://forums.collective2.com/u/c2-auto-trader)\
**Post date:** [January 13, 2016, 11:25pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/2 "2016-01-13T23:25:52Z")

</div>

Hi Matthew

Do you plan to disconnect old Data Services API (C2DS) soon?

---

<div class="post-metadata">

**Author:** ![MatthewKlein](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/matthewklein/32/21382_2.png) [@MatthewKlein](https://forums.collective2.com/u/MatthewKlein)\
**Post date:** [January 14, 2016, 12:00am UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/3 "2016-01-14T00:00:50Z")

</div>

No. I understand you invested time and energy building your software to use the old API resources. So of course we’ll leave it running. But I gently encourage you to migrate to the new APIs as you develop new software.

---

<div class="post-metadata">

**Author:** ![c2-auto-trader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/c2-auto-trader/32/21425_2.png) [@c2-auto-trader](https://forums.collective2.com/u/c2-auto-trader)\
**Post date:** [January 14, 2016, 1:52pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/4 "2016-01-14T13:52:06Z")

</div>

I’ve tried to send couple requests using new API (getSystemDetails & requestAllTrades\_overview) and received error message “Credentials provided do not allow access to this systemid”. Does it mean that new API works only with systems on which I subscribed? No general access to any/all systems at C2 now?

---

<div class="post-metadata">

**Author:** ![MatthewKlein](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/matthewklein/32/21382_2.png) [@MatthewKlein](https://forums.collective2.com/u/MatthewKlein)\
**Post date:** [January 14, 2016, 1:57pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/5 "2016-01-14T13:57:08Z")

</div>

Whoops. Will fix that! Will let you know on the forums here when fixed.

---

<div class="post-metadata">

**Author:** ![c2-auto-trader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/c2-auto-trader/32/21425_2.png) [@c2-auto-trader](https://forums.collective2.com/u/c2-auto-trader)\
**Post date:** [January 15, 2016, 2:22pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/6 "2016-01-15T14:22:53Z")

</div>

I didn’t find request which returns list of all C2 systems with their IDs. Is it possible to get this list using new API?

---

<div class="post-metadata">

**Author:** ![MatthewKlein](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/matthewklein/32/21382_2.png) [@MatthewKlein](https://forums.collective2.com/u/MatthewKlein)\
**Post date:** [January 15, 2016, 2:47pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/7 "2016-01-15T14:47:43Z")

</div>

OK, will add it. Will try to get to these requests over the next couple of days. Sorry.

---

<div class="post-metadata">

**Author:** ![MatthewKlein](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/matthewklein/32/21382_2.png) [@MatthewKlein](https://forums.collective2.com/u/MatthewKlein)\
**Post date:** [January 15, 2016, 10:00pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/8 "2016-01-15T22:00:23Z")

</div>

Hi, Andrey:

API version 3 commands

getSystemDetails  
and  
requestAllTrades\_overview

are now available to non subscribers (only closed trades are shown, however).

I’ll work on the additional feature you asked for - some kind of strategy roster.

MK

---

<div class="post-metadata">

**Author:** ![c2-auto-trader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/c2-auto-trader/32/21425_2.png) [@c2-auto-trader](https://forums.collective2.com/u/c2-auto-trader)\
**Post date:** [January 15, 2016, 10:38pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/9 "2016-01-15T22:38:26Z")

</div>

I didn’t check it, but could you please also share retrieveSystemEquity and retrieveSignalsAll to non subscribers?  
Is there any way to put working/closed system flag in the system roster you are working on?

---

<div class="post-metadata">

**Author:** ![MatthewKlein](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/matthewklein/32/21382_2.png) [@MatthewKlein](https://forums.collective2.com/u/MatthewKlein)\
**Post date:** [January 16, 2016, 7:49pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/10 "2016-01-16T19:49:06Z")

</div>

OK, Andrey - Your wish is my command. Commands retrieveSystemEquity and retrieveSignalsAll are now available to non-subscribers via API version 3. There is also a new command (now [included in the C2 API documentation](https://www.collective2.com/api-docs/latest)) called: getSystemRoster - which is self-explanatory.

---

<div class="post-metadata">

**Author:** ![c2-auto-trader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/c2-auto-trader/32/21425_2.png) [@c2-auto-trader](https://forums.collective2.com/u/c2-auto-trader)\
**Post date:** [January 17, 2016, 12:47am UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/11 "2016-01-17T00:47:30Z")

</div>

Thank you very much!!! That is why I’ve chosen C2 as my signal provider - great support and very detailed information about systems.

---

<div class="post-metadata">

**Author:** ![GraemeSmith2](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/graemesmith2/32/1487_2.png) [@GraemeSmith2](https://forums.collective2.com/u/GraemeSmith2)\
**Post date:** [January 28, 2016, 1:45am UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/12 "2016-01-28T01:45:29Z")

</div>

requestTradesOpen doesn’t seem to be working. It is giving me the closed trades instead. requestTrades also returns the same, the closed trades but no open trades. I am the system developer so I should be able to see the trades.

Another thing, retrieveMarginEquity doesn’t seem to work, it returns the following error :  
{  
“ok”: “0”,  
“error”: {  
“title”: “Unknown API command”,  
“message”: “Please refer to Collective2 API docs or contact Help Desk for more information”  
}  
}

However, I didn’t see it in the documentation, but getMarginEquity still seems to work in V3.

---

<div class="post-metadata">

**Author:** ![MatthewKlein](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/matthewklein/32/21382_2.png) [@MatthewKlein](https://forums.collective2.com/u/MatthewKlein)\
**Post date:** [January 28, 2016, 4:08pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/13 "2016-01-28T16:08:11Z")

</div>

Hi Graeme -

This was my mistake. I had the wrong name in the docs. Now you can use requestMarginEquity or getMarginEquity.

Regarding open trades:

Now this is fixed. If you are a subscriber to the strategy, requestTradesOpen will now work for you.

Let me know if you have any other issues. Thanks for bringing these to my attention.

Matthew

---

<div class="post-metadata">

**Author:** ![c2-auto-trader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/c2-auto-trader/32/21425_2.png) [@c2-auto-trader](https://forums.collective2.com/u/c2-auto-trader)\
**Post date:** [February 16, 2016, 2:27pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/14 "2016-02-16T14:27:01Z")

</div>

Could you please add trade drawdown information in the data returned for _requestAllTrades\_overview_? This info was in previous API.

---

<div class="post-metadata">

**Author:** ![VasilyKobylin](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/vasilykobylin/32/17122_2.png) [@VasilyKobylin](https://forums.collective2.com/u/VasilyKobylin)\
**Post date:** [September 27, 2022, 3:12pm UTC](https://forums.collective2.com/t/collective2-api-version-3-released/8384/16 "2022-09-27T15:12:32Z")

</div>

Yep, I broke my neck looking for the right command to obtain the list of working orders as retrieveSignalsWorking does not do anything, but requestTradesOpen works for me!
