Files
Morgan Pretty b33524ac21 Merge remote-tracking branch 'upstream/dev' into feature/simplify-migrations
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	SessionUtilitiesKit/Configuration.swift
2025-09-15 12:17:22 +10:00

20 lines
807 B
Swift

// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
import Foundation
public extension Network.SessionNetwork {
struct Price: Codable, Equatable {
enum CodingKeys: String, CodingKey {
case tokenUsd = "usd"
case marketCapUsd = "usd_market_cap"
case priceTimestamp = "t_price"
case staleTimestamp = "t_stale"
}
public let tokenUsd: Double? // Current token price (USD)
public let marketCapUsd: Double? // Current market cap value in (USD)
public let priceTimestamp: Int64? // The timestamp the price data is accurate at. (seconds)
public let staleTimestamp: Int64? // Stale timestamp for the price data. (seconds)
}
}