Skip to content

Get Available To Buy

Calculates the rate required in order to completely fill an exchange request.

Request:

  • requestType is getAvailableToBuy or getAvailableToSell
  • currency is the currency ID
  • units is the number of units to buy
  • requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
  • requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)

Response:

  • amountTQT (S) is the total amount needed to fill the exchange request
  • units (S) is the number of units
  • rateTQT (S) is the rate for the currency units
  • requestProcessingTime (N) is the API request processing time (in millisec)