Coin

public struct Coin : Equatable, CodableModel, CoinType

Coin

  • 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
  • Is it recently added to Coinpaprika

    Declaration

    Swift

    public let isNew: Bool
  • Is it active on Coinpaprika

    Declaration

    Swift

    public let isActive: Bool
  • Coin type, eg. .coin, .token

    Declaration

    Swift

    public var type: TypeValue { get }
  • Logo revision, filled when additionalFields contains .imgRev option

    Declaration

    Swift

    public var imgRev: Int?
  • Smart contract address, filled when additionalFields contains .contract option

    Declaration

    Swift

    public var contract: String?
  • Declaration

    Swift

    public enum TypeValue : String, Codable