public final class PublishExchangeOffer extends APIServlet.APIRequestHandler
CurrencyType.EXCHANGEABLE currency
 Parameters
Publishing an exchange offer internally creates a buy offer and a counter sell offer linked together. Typically the buyRateNQT specified would be less than the sellRateNQT thus allowing the publisher to make profit
 Each CurrencyBuy transaction which matches this offer reduces the sell supply and increases the buy supply
 Similarly, each CurrencySell transaction which matches this offer reduces the buy supply and increases the sell supply
 Therefore the multiple buy/sell transaction can be issued against this offer during it's lifetime.
 However, the total buy limit and sell limit stops exchanging based on this offer after the accumulated buy/sell limit is reached
 after possibly multiple exchange operations.
 
Only one exchange offer is allowed per account. Publishing a new exchange offer when another exchange offer exists for the account, removes the existing exchange offer and publishes the new exchange offer
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | allowRequiredBlockParameters() | 
| static java.util.List<java.lang.String> | getCommonParameters() | 
| protected org.json.simple.JSONStreamAware | processRequest(javax.servlet.http.HttpServletRequest req) | 
| protected boolean | requirePost() | 
getAPITags, getFileParameter, getParameters, isPassword, isTextArea, processRequest, requireBlockchain, requireFullClient, requirePassword, startDbTransactionprotected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req)
                                                  throws NxtException
processRequest in class APIServlet.APIRequestHandlerNxtExceptionprotected final boolean requirePost()
requirePost in class APIServlet.APIRequestHandlerprotected final boolean allowRequiredBlockParameters()
allowRequiredBlockParameters in class APIServlet.APIRequestHandlerpublic static java.util.List<java.lang.String> getCommonParameters()