Find System by Name

Wait


 

Forum: C2 Software Development

New?Last PostPosted By#Subject
4/23/13 (23:09)Matthew Klein3Reversing a Position Using Tradestation
4/03/13 (22:23)Greg Hanowski3sync suggestion
3/14/13 (8:34)Matthew Klein2ordertypes
3/11/13 (17:01)Greg Hanowski1super slow getsystemroster
2/27/13 (19:22)Matthew Klein5orders accepted and then cancelled by the system
2/25/13 (10:33)Greg Hanowski4scaledQuant confusion
2/20/13 (12:20)Greg Hanowski3session timeout
 
Older subjects >>



Post new message

 
Subject:getopenpositions command
Posted by:Bob Svan ( C2 Score: 968)  New msg
 
Ignore user's posts for week month forever
When:9/27/08 (7:16) 
Systems:
 
A response of "getopenpositions" command does not include "openaction" or "action" element. (For example "BTO" or "STO".)
If one trades long and short positions and wants to close open positions, this command alone does not help too much.
Can you add this element?

<openPositions>
<trade>
<tradeid>12345678</tradeid>
<symbol>CRL</symbol>
<instrument>stock</instrument>
<positionOpened>2008-09-26 15:55:00</positionOpened>
<quantOpened>290</quantOpened>
<quantClosed>0</quantClosed>
<entryPrice>57.9</entryPrice>
<pointValue>1</pointValue>
<quote>
<bid>58.04c</bid>
<ask>58.04c</ask>
<last>58.04</last>
<tick>17:19:07t</tick>
</quote>
</trade>

What drive me crazy, Matt, that in practically every xml structure you name the same thing by different name. Maybe you love vari-coloured life, but I really do not like to have a special procedure for every piece of information from C2.

Example #1: trade opening date
openPositions/trade: positionOpened
signals/signal: traded
tradeHistory trades/trade: earliestopen

Example #2: trading amount
openPositions/trade: quantOpened
signals/signal: quant
tradeHistory trades/trade: openquant

Example #3: tradeprice
openPositions/trade: entryPrice
signals/signal: tradeprice
tradeHistory trades/trade: openprice

Bob
  
Back up to list of subjects