TradeAggregationResponse
public struct TradeAggregationResponse : Decodable, Sendable
Represents a trade aggregation response. See Stellar developer docs
-
start time for this trade_aggregation. Represented as milliseconds since epoch.
Declaration
Swift
public let timestamp: String -
total number of trades aggregated.
Declaration
Swift
public let tradeCount: String -
total volume of base asset.
Declaration
Swift
public let baseVolume: String -
total volume of counter asset.
Declaration
Swift
public let counterVolume: String -
weighted average price of counter asset in terms of base asset.
Declaration
Swift
public let averagePrice: String -
highest price for this time period.
Declaration
Swift
public let highPrice: String -
lowest price for this time period.
Declaration
Swift
public let lowPrice: String -
price as seen on first trade aggregated.
Declaration
Swift
public let openPrice: String -
price as seen on last trade aggregated.
Declaration
Swift
public let closePrice: String -
Initializer - creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash