Files
sdk/Sources/Hanzo/Models/CaptableInstrumentTotal.swift

36 lines
930 B
Swift

//
// CaptableInstrumentTotal.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CaptableInstrumentTotal: Sendable, Codable, ParameterConvertible, Hashable {
/** Capital is the total capital across those instruments. */
public var capital: Double?
/** Count is how many instruments there are. */
public var count: Int64?
public init(capital: Double? = nil, count: Int64? = nil) {
self.capital = capital
self.count = count
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case capital
case count
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(capital, forKey: .capital)
try container.encodeIfPresent(count, forKey: .count)
}
}