Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit 9cc5e28

Browse files
committed
Equatable conformance (KucoinAuth, BinanceAuth)
1 parent 1a820e1 commit 9cc5e28

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Sources/SwiftTrader/Model/Binance/BinanceAuth.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,11 @@ public extension BinanceAuth {
3434
}
3535
}
3636
}
37+
38+
// MARK: - Equatable
39+
40+
extension BinanceAuth: Equatable {
41+
public static func == (lhs: BinanceAuth, rhs: BinanceAuth) -> Bool {
42+
lhs.spot.apiKey == rhs.spot.apiKey
43+
}
44+
}

Sources/SwiftTrader/Model/Kucoin/KucoinAuth.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,12 @@ public extension KucoinAuth {
5151
}
5252
}
5353
}
54+
55+
// MARK: - Equatable
56+
57+
extension KucoinAuth: Equatable {
58+
public static func == (lhs: KucoinAuth, rhs: KucoinAuth) -> Bool {
59+
lhs.spot.apiKey == rhs.spot.apiKey &&
60+
lhs.futures.apiKey == rhs.futures.apiKey
61+
}
62+
}

0 commit comments

Comments
 (0)