Skip to content

Commit 0f89c3a

Browse files
committed
Log contract symbol
1 parent 480f52d commit 0f89c3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SwiftTrader/SwiftTrader+TrailingStop.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public extension SwiftTrader {
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 {
2323
logger.log("Exchange: \(input.exchange.rawValue.uppercased())")
24+
logger.log("Contract: \(input.contractSymbol)")
25+
2426
logger.log("Calculating stop and limit prices...")
2527

2628
// E.g: 7.47 -> 0.0747

0 commit comments

Comments
 (0)