public method EntryOrderRequestBuilder.setStopRate
Overview
Sets the stop rate
Declaration
function setStopRate(stopRate)
public EntryOrderRequestBuilder setStopRate(double stopRate);
public EntryOrderRequestBuilder setStopRate(double stopRate);
Parameters
| Name | Description |
|---|---|
| stopRate | The price at which a stop order will be executed. A stop order is an order type that is used to limit a trader's loss or to protect their profit. When the market reaches the stop rate, the stop order will be executed, and the position will be closed at the best available price |
Returns
The method returns an instance of the EntryOrderRequest class
Details
Declared in EntryOrderRequestBuilder