DipDupChartObject
public struct DipDupChartObject : Codable
Structure holding a data slice
-
The average price at the given time
Declaration
Swift
public let average: Decimal
-
The address of the contract
Declaration
Swift
public let exchangeId: String
-
String representing the date and time the slice is for
Declaration
Swift
public let bucket: String
-
The highest value reached in this slice
Declaration
Swift
public let high: String
-
The lowest value reached in this slice
Declaration
Swift
public let low: String
-
Convert the
bucket
string into aDate
objectDeclaration
Swift
public func date() -> Date?
-
Convert the
average
value into aDouble
Declaration
Swift
public func averageDouble() -> Double
-
Convert the
high
value into aDouble
Declaration
Swift
public func highDouble() -> Double
-
Convert the
low
value into aDouble
Declaration
Swift
public func lowDouble() -> Double