com.lmax.api.order
Class AmendStopsRequest

java.lang.Object
  extended by com.lmax.api.order.AmendStopsRequest
All Implemented Interfaces:
com.lmax.api.internal.Request

public class AmendStopsRequest
extends java.lang.Object
implements com.lmax.api.internal.Request

Request to amend stop loss/profit on an existing order.


Constructor Summary
AmendStopsRequest(long instrumentId, java.lang.String originalInstructionId, FixedPointNumber stopLossOffset, FixedPointNumber stopProfitOffset)
          Construct an AmendStopLossProfitRequest using the instrument id and the instruction id of the original order.
AmendStopsRequest(long instrumentId, java.lang.String originalInstructionId, java.lang.String instructionId, FixedPointNumber stopLossOffset, FixedPointNumber stopProfitOffset)
          Construct an AmendStopLossProfitRequest using the instrument id and the instruction id of the original order.
 
Method Summary
 java.lang.String getUri()
          The amend stops uri.
 void writeTo(com.lmax.api.internal.xml.StructuredWriter writer)
          Internal: Output this request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmendStopsRequest

public AmendStopsRequest(long instrumentId,
                         java.lang.String originalInstructionId,
                         java.lang.String instructionId,
                         FixedPointNumber stopLossOffset,
                         FixedPointNumber stopProfitOffset)
Construct an AmendStopLossProfitRequest using the instrument id and the instruction id of the original order.

Parameters:
instrumentId - The instrument id that the original order was placed on.
originalInstructionId - The instructionId id that the original order.
instructionId - The user-defined correlation ID of the amend stops request
stopLossOffset - The new stop loss offset, use null to indicate the value should be removed.
stopProfitOffset - The new stop profit offset, use null to indicate the value should be removed.

AmendStopsRequest

public AmendStopsRequest(long instrumentId,
                         java.lang.String originalInstructionId,
                         FixedPointNumber stopLossOffset,
                         FixedPointNumber stopProfitOffset)
Construct an AmendStopLossProfitRequest using the instrument id and the instruction id of the original order.

Parameters:
instrumentId - The instrument id that the original order was placed on.
originalInstructionId - The instructionId id that the original order.
stopLossOffset - The new stop loss offset, use null to indicate the value should be removed.
stopProfitOffset - The new stop profit offset, use null to indicate the value should be removed.
Method Detail

getUri

public java.lang.String getUri()
The amend stops uri.

Specified by:
getUri in interface com.lmax.api.internal.Request
Returns:
the amend stops uri

writeTo

public void writeTo(com.lmax.api.internal.xml.StructuredWriter writer)
Internal: Output this request.

Specified by:
writeTo in interface com.lmax.api.internal.Request
Parameters:
writer - The destination for the content of this request