public final class CurrencySell extends APIServlet.APIRequestHandler
Parameters
currency sell transaction attempts to match existing exchange offers. When a match is found, the minimum number of units
between the number of units offered and the units requested are exchanged at a rate matching the lowest buy offer
A single transaction can match multiple buy offers or none.
Unlike asset ask order, currency sell is not saved. It's either executed immediately (fully or partially) or not executed
at all.
For every match between buyer and seller an exchange record is saved, exchange records can be retrieved using the GetExchanges
API
DESCRIPTION_FIELD, MESSAGE_FIELD, NAME_FIELD
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowRequiredBlockParameters() |
protected org.json.simple.JSONStreamAware |
processRequest(javax.servlet.http.HttpServletRequest req) |
protected boolean |
requirePost() |
getAPITags, getFileParameter, getParameters, processRequest, requireBlockchain, requireFullClient, requirePassword, startDbTransaction
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req) throws NxtException
processRequest
in class APIServlet.APIRequestHandler
NxtException
protected final boolean requirePost()
requirePost
in class APIServlet.APIRequestHandler
protected final boolean allowRequiredBlockParameters()
allowRequiredBlockParameters
in class APIServlet.APIRequestHandler