# New API Feature: Reverse Position

**URL:** <https://forums.collective2.com/t/new-api-feature-reverse-position/6089>\
**Category:** C2\
**Created:** [December 14, 2005, 2:49pm UTC](https://forums.collective2.com/t/new-api-feature-reverse-position/6089 "2005-12-14T14:49:25Z")\
**Posts on this page:** 4\
**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:** [December 14, 2005, 2:49pm UTC](https://forums.collective2.com/t/new-api-feature-reverse-position/6089/1 "2005-12-14T14:49:25Z")

</div>

If you use the C2 API to enter trades into C2, please be aware there is a new function you can use: **reverse**. As the name implies, the function allows you to reverse a position from long to short or short to long (either at the prevailing market price, or at a trigger price you specify) with one call to the API.  
  
  
  
More details are available in the API doc, reachable via the left-side menu bar (towards the bottom, follow link that says “API”), or through:  
  
  
  
[www.collective2.com/api](http://www.collective2.com/api)  
  
  
  
Matthew

---

<div class="post-metadata">

**Author:** ![Ilan\_vanGelder](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@Ilan\_vanGelder](https://forums.collective2.com/u/Ilan_vanGelder)\
**Post date:** [December 15, 2005, 3:05pm UTC](https://forums.collective2.com/t/new-api-feature-reverse-position/6089/2 "2005-12-15T15:05:00Z")

</div>

Schould something like this work matthew? do I understand it correct?  
  
  
  
[http://www.collective2.com/cgi-perl/signal.mpl?cmd=reverse&systemid=“xxx”&pw=“xxx”&instrument=future&symbol=@EUH6&duration=day](http://www.collective2.com/cgi-perl/signal.mpl?cmd=reverse&systemid=%22xxx%22&pw=%22xxx%22&instrument=future&symbol=@EUH6&duration=day)

---

<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:** [December 15, 2005, 5:13pm UTC](https://forums.collective2.com/t/new-api-feature-reverse-position/6089/3 "2005-12-15T17:13:33Z")

</div>

Right. No quotes around the password and systemid, of course.  
  
  
  
That command which you proposed will simply reverse, at the market, from long to short (or short to long).  
  
  
  
Matthew

---

<div class="post-metadata">

**Author:** ![Ilan\_vanGelder](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@Ilan\_vanGelder](https://forums.collective2.com/u/Ilan_vanGelder)\
**Post date:** [December 16, 2005, 4:06am UTC](https://forums.collective2.com/t/new-api-feature-reverse-position/6089/4 "2005-12-16T04:06:28Z")

</div>

tnx…I will change the code this weekend, cause now the systems are running, but thanks for making this.
