Home

book_offers

POST
https://xrp.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Retrieve the order book for a specific currency pair. This method returns current offers (orders) in the decentralized exchange.

Body

application/json

Retrieve the order book for a specific currency pair. This method returns current offers (orders) in the decentralized exchange.

JSON-RPC request payload.

methodstringbook_offersrequired

The JSON-RPC method name

paramsArray<object>required

Ordered JSON-RPC method parameters.

Show child attributes
takerstring

The address of the account that would take the offers. This affects which offers are returned based on the account's trust lines.

taker_getsobjectrequired

The currency the taker would receive in the exchange.

Show child attributes
currencystring

Currency code - "XRP" for native XRP, or 3-character code for issued currencies.

issuerstring

Issuer account address - only required for issued currencies, not for XRP.

taker_paysobjectrequired

The currency the taker would pay in the exchange.

Show child attributes
currencystring

Currency code for the payment currency

issuerstring

Issuer account address for the payment currency

limitinteger

Maximum number of offers to return. Higher limits may take longer to process.

Response

200OK

HTTP 200 response for book_offers. The body contains either a successful result or a method-level JSON-RPC error.

400Bad Request

Bad Request. The request body is malformed or contains invalid JSON-RPC parameters.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error. The gateway or node failed while processing the request.