Skip to content

Commit 480f52d

Browse files
committed
Uppercase exchange name
1 parent 8747b83 commit 480f52d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftTrader/SwiftTrader+TrailingStop.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public extension SwiftTrader {
2020
/// - Returns: `StopLimitPriceTuple`, which contains the calculated stop (trigger) price and limit price.
2121
/// The stop price and the limit price are also tuples. These tuples provide the price in both `String` and `Double` format.
2222
func calculateStopLimitPrice(for input: SwiftTraderStopLimitOrderInput) throws -> StopLimitPriceTuple {
23-
logger.log("Creating order parameters...")
24-
logger.log("Exchange: \(input.exchange)")
23+
logger.log("Exchange: \(input.exchange.rawValue.uppercased())")
24+
logger.log("Calculating stop and limit prices...")
2525

2626
// E.g: 7.47 -> 0.0747
2727
let profitPercentage: Double = (input.profitPercentage / 100)

0 commit comments

Comments
 (0)