ZKExchangeSettings

Objective-C

@interface ZKExchangeSettings : NSObject

Swift

class ZKExchangeSettings : NSObject

Record containing Zumo exchange settings used in making exchanges.

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithId:(nonnull NSString *)id
                        depositAddress:(nonnull NSDictionary<NSString *, NSString *> *)depositAddress
                       depositCurrency:(nonnull NSString *)depositCurrency
                      withdrawCurrency:(nonnull NSString *)withdrawCurrency
                     minExchangeAmount:(nonnull NSDecimalNumber *)minExchangeAmount
                               feeRate:(nonnull NSDecimalNumber *)feeRate
                        depositFeeRate:(nonnull NSDecimalNumber *)depositFeeRate
                           withdrawFee:(nonnull NSDecimalNumber *)withdrawFee
                             timestamp:(int64_t)timestamp;

    Swift

    init(id: String, depositAddress: [String : String], depositCurrency: String, withdrawCurrency: String, minExchangeAmount: NSDecimalNumber, feeRate: NSDecimalNumber, depositFeeRate: NSDecimalNumber, withdrawFee: NSDecimalNumber, timestamp: Int64)
  • Declaration

    Objective-C

    + (nonnull instancetype)exchangeSettingsWithId:(nonnull NSString *)id
                                    depositAddress:(nonnull NSDictionary<NSString *, NSString *> *)depositAddress
                                   depositCurrency:(nonnull NSString *)depositCurrency
                                  withdrawCurrency:(nonnull NSString *)withdrawCurrency
                                 minExchangeAmount:(nonnull NSDecimalNumber *)minExchangeAmount
                                           feeRate:(nonnull NSDecimalNumber *)feeRate
                                    depositFeeRate:(nonnull NSDecimalNumber *)depositFeeRate
                                       withdrawFee:(nonnull NSDecimalNumber *)withdrawFee
                                         timestamp:(int64_t)timestamp;
  • id

    Identifier.

    Declaration

    Objective-C

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

    Swift

    var id: String { get }
  • Zumo Exchange Service wallet address for each network type.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var withdrawCurrency: 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 *feeRate;

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly) int64_t timestamp;

    Swift

    var timestamp: Int64 { get }