placechangeequityorder 导致 "existing open order" 错误

placechangeequityorder results in "existing open order" error

我使用 https://etws.etrade.com/order/rest/placeequityorder 成功向 E*Trade 提交了股票订单:

<PlaceEquityOrder xmlns="http://order.etws.etrade.com">
  <EquityOrderRequest>
    <clientOrderId>1507910303000001</clientOrderId>
    <accountId>xxx</accountId>
    <quantity>1</quantity>
    <orderAction>BUY</orderAction>
    <priceType>LIMIT</priceType>
    <marketSession>REGULAR</marketSession>
    <orderTerm>GOOD_FOR_DAY</orderTerm>
    <symbol>TEUM</symbol>
    <limitPrice>0.6</limitPrice>
  </EquityOrderRequest>
</PlaceEquityOrder>

E*Trade确认订单成功:

<PlaceEquityOrderResponse>
  <equityOrderResponse>
    <accountId>xxx</accountId>
    <allOrNone>false</allOrNone>
    <estimatedCommission>6.95</estimatedCommission>
    <estimatedTotalAmount>7.55</estimatedTotalAmount>
    <messageList>
      <message>
        <msgDesc>Your order was successfully entered during market hours.</msgDesc>
        <msgCode>1026</msgCode>
      </message>
    </messageList>
    <orderNum>10</orderNum>
    <orderTime>1507924703308</orderTime>
    <quantity>1</quantity>
    <reserveOrder>false</reserveOrder>
    <reserveQuantity>0</reserveQuantity>
    <orderTerm>GOOD_FOR_DAY</orderTerm>
    <limitPrice>0.6</limitPrice>
    <stopPrice>0</stopPrice>
    <symbolDesc>PARETEUM CORP COM NEW</symbolDesc>
    <symbol>TEUM</symbol>
    <orderAction>BUY</orderAction>
    <priceType>LIMIT</priceType>
  </equityOrderResponse>
</PlaceEquityOrderResponse>

然后我尝试更新限价 https://etws.etrade.com/order/rest/placechangeequityorder:

<placeChangeEquityOrder xmlns="http://order.etws.etrade.com">
  <changeEquityOrderRequest>
    <orderNum>10</orderNum>
    <clientOrderId>1507910303000001</clientOrderId>
    <accountId>xxx</accountId>
    <quantity>1</quantity>
    <orderAction>BUY</orderAction>
    <priceType>LIMIT</priceType>
    <marketSession>REGULAR</marketSession>
    <orderTerm>GOOD_FOR_DAY</orderTerm>
    <symbol>TEUM</symbol>
    <limitPrice>0.61</limitPrice>
  </changeEquityOrderRequest>
</placeChangeEquityOrder>

但是更改被拒绝

> <Error><ErrorCode>1028</ErrorCode><ErrorMessage>You have an existing
> open order for this security on the same side of the market. If you
> did not intend to place a second order for this security, please click
> Cancel Order ; otherwise, click  Trade  to
> proceed.</ErrorMessage></Error> ---> System.Net.WebException: The
> remote server returned an error: (400) Bad Request.

我试过包括和不包括 clientOrderId,都没有区别。我快疯了,因为相同的代码在当天早些时候工作得很好,然后就再也没有工作过。

如果您可以使用 ETrade API 提交对订单的更改,请告诉我。 ETrade API 论坛好像消失了:(

每个更改请求都需要提交一个新的 clientOrderId。我原以为应该继续发送原始 clientOrderId(第一次提交订单时使用的那个)。