diff --git a/content/rippled.md b/content/rippled.md index b25806933a..f08806022d 100644 --- a/content/rippled.md +++ b/content/rippled.md @@ -5891,15 +5891,13 @@ An example of the request format: "command": "book_offers", "taker": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", "taker_gets": { - "value": "1", - "currency": "EUR", - "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B" + "currency": "XRP" }, "taker_pays": { - "value": "1", "currency": "USD", "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B" - } + }, + "limit": 10 } ``` @@ -5912,15 +5910,13 @@ An example of the request format: { "taker": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59", "taker_gets": { - "currency": "EUR", - "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", - "value": "1" + "currency": "XRP" }, "taker_pays": { "currency": "USD", "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B", - "value": "1" - } + }, + "limit": 10 } ] } diff --git a/js/apitool-websocket.js b/js/apitool-websocket.js index 3e0a08a990..295cb9639e 100644 --- a/js/apitool-websocket.js +++ b/js/apitool-websocket.js @@ -219,9 +219,15 @@ ledger_hash: void(0), ledger_index: void(0), taker: sample_address, - taker_gets: ripple.Amount.from_json('1/EUR/rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B').to_json(), - taker_pays: ripple.Amount.from_json('1/USD/rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B').to_json(), - _description: 'Returns the offers for an order book as one or more pages.', + taker_gets: { + currency: 'XRP' + }, + taker_pays: { + currency: 'USD', + issuer: 'rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B' + }, + limit: 10, + _description: 'Returns a snapshot of the offers for an order book.', _link: 'rippled-apis.html#book-offers' });