ZKExchangeSetting

Objective-C

@interface ZKExchangeSetting : NSObject

Swift

class ZKExchangeSetting : NSObject

Record containing Zumo exchange setting used in making exchanges.

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithId:(nonnull NSString *)id
                       exchangeAddress:(nonnull NSDictionary<NSString *, NSString *> *)exchangeAddress
                          fromCurrency:(nonnull NSString *)fromCurrency
                            toCurrency:(nonnull NSString *)toCurrency
                     minExchangeAmount:(nonnull NSDecimalNumber *)minExchangeAmount
                       exchangeFeeRate:(nonnull NSDecimalNumber *)exchangeFeeRate
            outgoingTransactionFeeRate:(nonnull NSDecimalNumber *)outgoingTransactionFeeRate
                  returnTransactionFee:(nonnull NSDecimalNumber *)returnTransactionFee
                             timestamp:(int32_t)timestamp;

    Swift

    init(id: String, exchangeAddress: [String : String], fromCurrency: String, toCurrency: String, minExchangeAmount: NSDecimalNumber, exchangeFeeRate: NSDecimalNumber, outgoingTransactionFeeRate: NSDecimalNumber, returnTransactionFee: NSDecimalNumber, timestamp: Int32)
  • Declaration

    Objective-C

    + (nonnull instancetype)exchangeSettingWithId:(nonnull NSString *)id
                                  exchangeAddress:(nonnull NSDictionary<NSString *, NSString *> *)exchangeAddress
                                     fromCurrency:(nonnull NSString *)fromCurrency
                                       toCurrency:(nonnull NSString *)toCurrency
                                minExchangeAmount:(nonnull NSDecimalNumber *)minExchangeAmount
                                  exchangeFeeRate:(nonnull NSDecimalNumber *)exchangeFeeRate
                       outgoingTransactionFeeRate:(nonnull NSDecimalNumber *)outgoingTransactionFeeRate
                             returnTransactionFee:(nonnull NSDecimalNumber *)returnTransactionFee
                                        timestamp:(int32_t)timestamp;
  • id

    Identifier.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *id;

    Swift

    var id: String { get }
  • Mapping between networks and Zumo Exchange addresses.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDictionary<NSString *, NSString *> *exchangeAddress;

    Swift

    var exchangeAddress: [String : String] { get }
  • Currency code of outgoing transaction.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *fromCurrency;

    Swift

    var fromCurrency: String { get }
  • Currency code of return transaction.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *toCurrency;

    Swift

    var toCurrency: String { get }
  • Minimum amount that can be exchanged in outgoing transaction currency.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDecimalNumber *minExchangeAmount;

    Swift

    var minExchangeAmount: NSDecimalNumber { get }
  • Exchange fee rate that will be charged once currency is exchanged.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDecimalNumber *exchangeFeeRate;

    Swift

    var exchangeFeeRate: NSDecimalNumber { get }
  • Fee rate that will be used for outgoing transaction.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDecimalNumber *outgoingTransactionFeeRate;

    Swift

    var outgoingTransactionFeeRate: NSDecimalNumber { get }
  • Fee that will charged for return transaction.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDecimalNumber *returnTransactionFee;

    Swift

    var returnTransactionFee: NSDecimalNumber { get }
  • Epoch timestamp when the exchange setting were last updated.

    Declaration

    Objective-C

    @property (nonatomic, readonly) int32_t timestamp;

    Swift

    var timestamp: Int32 { get }