Exchange

public struct Exchange : Equatable, CodableModel

Exchange

  • id

    Exchange id, eg. binance

    Declaration

    Swift

    public let id: String
  • Exchange name, eg. Binance

    Declaration

    Swift

    public let name: String
  • Exchange description

    Declaration

    Swift

    public let description: String
  • Is this exchange active

    Declaration

    Swift

    public let active: Bool
  • Exchange website status

    Declaration

    Swift

    public let websiteStatus: Bool
  • Exchange API status

    Declaration

    Swift

    public let apiStatus: Bool
  • Reason why it’s not active

    Declaration

    Swift

    public let message: String?
  • Exchange links

    Declaration

    Swift

    public let links: Links?
  • Is market data fetched

    Declaration

    Swift

    public let marketsDataFetched: Bool
  • Position in ranking based on adjusted volume

    Declaration

    Swift

    public let adjustedRank: Int?
  • Position in ranking based on reported volume

    Declaration

    Swift

    public let reportedRank: Int?
  • Supported currencies

    Declaration

    Swift

    public let currencies: Int
  • Supported markets

    Declaration

    Swift

    public let markets: Int
  • List of supported fiat currencies

    Declaration

    Swift

    public let fiats: [Fiat]
  • Last update time

    Declaration

    Swift

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

    • For accessing reported volume in USD use exchange[.usd].reportedVolume24h

    • For accessing adjusted volume in BTC use exchange[.btc].adjustedVolume24h

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

    Declaration

    Swift

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

    Parameters

    currency

    QuoteCurrency, eg. .usd or .btc

  • Exchange.Quote data

    See more

    Declaration

    Swift

    public struct Quote : Codable, Equatable
  • Exchange.Links

    See more

    Declaration

    Swift

    public struct Links : Codable, Equatable
  • Exchange.Fiat

    See more

    Declaration

    Swift

    public struct Fiat : Codable, Equatable