Translations:Monetary System/121/en

From ArdorDocs
Jump to: navigation, search

Request: Refer to Create Transaction Request for common parameters.

  • requestType is publishExchangeOffer
  • chain the chain related to the operation
  • currency is the currency ID
  • buyRateNQTPerUnit is the offered buy rate (in NQT per QNT)
  • sellRateNQTPerUnit is the offered sell rate (in NQT per QNT)
  • totalBuyLimitQNT is the cumulative limit (in QNT) of currency buys
  • totalSellLimitQNT is the cumulative limit (in QNT) of currency sells
  • initialBuySupplyQNT is the initial amount (in QNT) of currency offered to buy, cannot exceed totalBuyLimit
  • initialSellSupplyQNT is the initial amount (in QNT) of currency offered to sell, cannot exceed totalSellLimit
  • expirationHeight is the blockchain height for expiration of the offer

Notes: Each time currency is bought in response to an exchange request to sell currency (refer to Currency Sell), totalBuyLimit is reduced and the supply of currency offered to sell increases by the amount bought. When totalBuyLimit becomes zero, the buy offer is withdrawn. These same notes apply if buy and sell are interchanged. Only the most recent offer associated with an account is valid, even if an earlier offer by that account has not yet expired or reached its limits.