File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
Sources/SwiftTrader/Model/Binance/BinanceAuth Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 77
88import Foundation
99
10- public protocol BinanceAuthorizing {
11- var apiKey : String { get }
12- var apiSecret : String { get }
13- }
14-
1510/// Holds data required to authenticate requests against Binance APIs.
1611public struct BinanceAuth {
1712
@@ -24,7 +19,7 @@ public struct BinanceAuth {
2419
2520public extension BinanceAuth {
2621
27- struct Spot : BinanceAuthorizing {
22+ struct Spot : BinanceAuthorizing , Codable {
2823 public let apiKey : String
2924 public let apiSecret : String
3025
@@ -34,11 +29,3 @@ public extension BinanceAuth {
3429 }
3530 }
3631}
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- }
Original file line number Diff line number Diff line change 1+ //
2+ // BinanceAuthorizing.swift
3+ //
4+ //
5+ // Created by Fernando Fernandes on 03.01.24.
6+ //
7+
8+ import Foundation
9+
10+ public protocol BinanceAuthorizing : Codable {
11+ var apiKey : String { get }
12+ var apiSecret : String { get }
13+ }
You can’t perform that action at this time.
0 commit comments