Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

64 lines
1.9 KiB
Swift

//
// Day.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Day: Sendable, Codable, ParameterConvertible, Hashable {
public var close: String?
/** Count is transactions in the day, where the table keeps one. */
public var count: Int64?
/** Date is the day's start, unix seconds. */
public var date: Int64?
public var high: String?
public var locked: String?
public var low: String?
public var _open: String?
public var price: String?
public var volume: String?
public init(close: String? = nil, count: Int64? = nil, date: Int64? = nil, high: String? = nil, locked: String? = nil, low: String? = nil, _open: String? = nil, price: String? = nil, volume: String? = nil) {
self.close = close
self.count = count
self.date = date
self.high = high
self.locked = locked
self.low = low
self._open = _open
self.price = price
self.volume = volume
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case close
case count
case date
case high
case locked
case low
case _open = "open"
case price
case volume
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(close, forKey: .close)
try container.encodeIfPresent(count, forKey: .count)
try container.encodeIfPresent(date, forKey: .date)
try container.encodeIfPresent(high, forKey: .high)
try container.encodeIfPresent(locked, forKey: .locked)
try container.encodeIfPresent(low, forKey: .low)
try container.encodeIfPresent(_open, forKey: ._open)
try container.encodeIfPresent(price, forKey: .price)
try container.encodeIfPresent(volume, forKey: .volume)
}
}