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 8747b83 commit 480f52dCopy full SHA for 480f52d
Sources/SwiftTrader/SwiftTrader+TrailingStop.swift
@@ -20,8 +20,8 @@ public extension SwiftTrader {
20
/// - Returns: `StopLimitPriceTuple`, which contains the calculated stop (trigger) price and limit price.
21
/// The stop price and the limit price are also tuples. These tuples provide the price in both `String` and `Double` format.
22
func calculateStopLimitPrice(for input: SwiftTraderStopLimitOrderInput) throws -> StopLimitPriceTuple {
23
- logger.log("Creating order parameters...")
24
- logger.log("Exchange: \(input.exchange)")
+ logger.log("Exchange: \(input.exchange.rawValue.uppercased())")
+ logger.log("Calculating stop and limit prices...")
25
26
// E.g: 7.47 -> 0.0747
27
let profitPercentage: Double = (input.profitPercentage / 100)
0 commit comments