Ticker

public struct Ticker : Equatable, CodableModel

Coin Ticker

  • id

    Coin id, eg. btc-bitcoin

    Declaration

    Swift

    public let id: String
  • Coin name, eg. Bitcoin

    Declaration

    Swift

    public let name: String
  • Coin symbol, eg. BTC

    Declaration

    Swift

    public let symbol: String
  • Coin position in Coinpaprika ranking

    Declaration

    Swift

    public let rank: Int
  • Coins circulating on the market

    Declaration

    Swift

    public let circulatingSupply: Decimal
  • Total number of coins

    Declaration

    Swift

    public let totalSupply: Decimal
  • Maximum number of coins that could exist

    Declaration

    Swift

    public let maxSupply: Decimal
  • Circulating Supply / Max Supply Rate

    Declaration

    Swift

    public var circulatingSupplyPercent: Decimal? { get }
  • Beta (β or beta coefficient) of an investment indicates whether the investment is more or less volatile than the market as a whole.

    • β < 0 Asset movement is in the opposite direction of the total crypto market
    • β = 0 Asset movement is uncorrelated to the total crypto market
    • 0 < β < 1 Asset moves in the same direction, but in a lesser amount than the total crypto market
    • β = 1 Asset moves in the same direction and in the same amount as the total crypto market
    • β > 1 Asset moves in the same direction, but in a greater amount than the total crypto market

    Declaration

    Swift

    public let betaValue: Decimal
  • Last update time

    Declaration

    Swift

    public let lastUpdated: Date
  • Use this method to access coin market data in provided quote currency

    • For accessing coin price in USD use ticker[.usd].price

    • For accessing coin volume24h in BTC use ticker[.btc].volume24h

    • This method returns implicitly unwrapped optional Quote! - be sure to download Ticker(s) with requested QuoteCurrency before use

    Declaration

    Swift

    public subscript(currency: QuoteCurrency) -> Quote! { get }

    Parameters

    currency

    QuoteCurrency, eg. .usd or .btc

  • Coin market data

    See more

    Declaration

    Swift

    public struct Quote : Codable, Equatable