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
  • low

    The lowest value reached in this slice

    Declaration

    Swift

    public let low: String
  • Convert the bucket string into a Date object

    Declaration

    Swift

    public func date() -> Date?
  • Convert the average value into a Double

    Declaration

    Swift

    public func averageDouble() -> Double
  • Convert the high value into a Double

    Declaration

    Swift

    public func highDouble() -> Double
  • Convert the low value into a Double

    Declaration

    Swift

    public func lowDouble() -> Double