We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2fb3b7 commit aa9d8c2Copy full SHA for aa9d8c2
Sources/SwiftTrader/SwiftTrader+TrailingStop.swift
@@ -26,7 +26,10 @@ public extension SwiftTrader {
26
logger.log("Offset: \(offset.toDecimalString())")
27
28
guard offset < profitPercentage else {
29
- throw SwiftTraderError.kucoinInvalidOffset(offset: offset, profitPercentage: profitPercentage)
+ throw SwiftTraderError.kucoinInvalidOffset(
30
+ offset: input.offset,
31
+ profitPercentage: input.profitPercentage
32
+ )
33
}
34
35
// E.g.: (0.0747 - 0.0075) = 0.0672 (6,72%)
0 commit comments