/v1/orderbook
Live DEX orderbook
Request
https://api.xrpl.to/v1/orderbook?base=0dd550278b74cb6690fdae351e8e0df3"e=XRP&limit=5| Query parameter | Value | Description |
|---|---|---|
| base | token id | |
| quote | token id | |
| limit | int (max 400, default 20) |
curl 'https://api.xrpl.to/v1/orderbook?base=0dd550278b74cb6690fdae351e8e0df3"e=XRP&limit=5'
Response
https://api.xrpl.to/v1/orderbook?base=0dd550278b74cb6690fdae351e8e0df3"e=XRP&limit=5{ "success": true, "pair": "RLUSD/XRP", "base": { "currency": "RLUSD", "issuer": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De", "md5": "0dd550278b74cb6690fdae351e8e0df3" }, "quote": { "currency": "XRP", "issuer": null, "md5": null }, "bids": [ { "price": "1.07069017759538", "amount": "34.6272309", "total": "37.075036", "account": "rHW8GSv6qxsdu1cBqnzErLefVfbvSSSB5J", "funded": true }, { "price": "1.07042732138306", "amount": "0.58855", "total": "0.63", "account": "rpKfmLmLtFuexPHZj2zKvcy2YGZk213ecj", "funded": true }, { "price": "1.07032002568768", "amount": "435.794892", "total": "466.44", "account": "rLVkkxk7THbb3dCZ6aETvLnzc8HabyubEs", "funded": true }, { "price": "1.07027732857569", "amount": "373.734909", "total": "400", "account": "r3hriyZocf5w3F5dHKaQxPVDA2zKLFM1pm", "funded": true }, { "price": "1.07018142857143", "amount": "0.7", "total": "0.749127", "account": "rdmFzEkMmPWyySaYCvptaLjyT6sSbYJKx", "funded": true } ], "asks": [ { "price": "1.07238605898123", "amount": "629.9224", "total": "675.52", "account": "rLVkkxk7THbb3dCZ6aETvLnzc8HabyubEs", "funded": true }, { "price": "1.0724254423005", "amount": "374.18", "total": "401.280152", "account": "rUMBUV11gQBUadbW9LF58oWeBBPaSGGF2V", "funded": true }, { "price": "1.0727311735679", "amount": "630.698554", "total": "676.57", "account": "rLVkkxk7THbb3dCZ6aETvLnzc8HabyubEs", "funded": true }, { "price": "1.07292053426504", "amount": "144.577232", "total": "155.119881", "account": "r3hriyZocf5w3F5dHKaQxPVDA2zKLFM1pm", "funded": true }, { "price": "1.07296137339056", "amount": "708.38524", "total": "760.07", "account": "rLVkkxk7THbb3dCZ6aETvLnzc8HabyubEs", "funded": true } ], "ledger_index": 108479792 }
{ success, pair, base, quote, bids[], asks[], ledger_index (falls back to ledger_current_index) }