Closes a position with a market order.

Namespace: RightEdge.Common
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public ReturnCode ClosePosition(
	string PosID
)
Visual Basic
Public Function ClosePosition ( 
	PosID As String
) As ReturnCode
Visual C++
public:
ReturnCode^ ClosePosition(
	String^ PosID
)
F#
member ClosePosition : 
        PosID : string -> ReturnCode 

Parameters

PosID
Type: System..::..String
The ID of the position to close.

Return Value

Type: ReturnCode
A ReturnCode indicating whether the order to close the position was successfully submitted.

See Also