@@ -12,7 +12,7 @@ public struct SwiftTraderStopLimitOrderInput {
12
12
13
13
// MARK: - Properties
14
14
15
- public let clean : Bool
15
+ public let cancelStopOrders : Bool
16
16
public let contractSymbol : String
17
17
public let currentPrice : Double
18
18
public let entryPrice : Double
@@ -28,8 +28,8 @@ public struct SwiftTraderStopLimitOrderInput {
28
28
/// Creates a `SwiftTraderOrderInput` instance.
29
29
///
30
30
/// - Parameters:
31
- /// - clean : When `true`, all the untriggered stop orders for the `contractSymbol` will be cancelled before placing a new one.
32
- /// Cleaning is done via `SwiftTrader.kucoinFuturesCancelStopOrders(symbol:)`. In case that fails, the execution continues
31
+ /// - cancelStopOrders : When `true`, all the untriggered stop orders for the `contractSymbol` will be cancelled before placing a new one.
32
+ /// Cancelling is done via `SwiftTrader.kucoinFuturesCancelStopOrders(symbol:)`. In case that fails, the execution continues
33
33
/// and a new order will be placed regardless.
34
34
/// - contractSymbol: E.g.: XBTCUSDTM
35
35
/// - currentPrice: The current price of the asset.
@@ -44,7 +44,7 @@ public struct SwiftTraderStopLimitOrderInput {
44
44
/// - profitPercentage: The percentage of the profit at this point, e.g.: "1.5", "0.67".
45
45
/// - ticker: E.g.: BTCUSDT
46
46
/// - tickerSize: E.g.: "1", "0.05", "0.00001"
47
- public init ( clean : Bool ,
47
+ public init ( cancelStopOrders : Bool ,
48
48
contractSymbol: String ,
49
49
currentPrice: Double ,
50
50
entryPrice: Double ,
@@ -54,7 +54,7 @@ public struct SwiftTraderStopLimitOrderInput {
54
54
profitPercentage: Double ,
55
55
ticker: String ,
56
56
tickerSize: String ) {
57
- self . clean = clean
57
+ self . cancelStopOrders = cancelStopOrders
58
58
self . contractSymbol = contractSymbol
59
59
self . currentPrice = currentPrice
60
60
self . entryPrice = entryPrice
0 commit comments