mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Fix getOrderbook (#970)
* Fix `getOrderbook` (Fix #766) * Add `formatBidsAndAsks` as a recommended alternative to `getOrderbook` * Add `renameCounterpartyToIssuer`
This commit is contained in:
13
test/fixtures/rippled/requests/1-taker_gets-XRP-taker_pays-JPY.json
vendored
Normal file
13
test/fixtures/rippled/requests/1-taker_gets-XRP-taker_pays-JPY.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"taker_gets": {
|
||||
"currency": "XRP"
|
||||
},
|
||||
"taker_pays": {
|
||||
"currency": "JPY",
|
||||
"issuer": "rB3gZey7VWHYRqJHLoHDEJXJ2pEPNieKiS"
|
||||
},
|
||||
"ledger_index": "validated",
|
||||
"limit": 400,
|
||||
"taker": "rE9qNjzJXpiUbVomdv7R4xhrXVeH2oVmGR",
|
||||
"command": "book_offers"
|
||||
}
|
||||
13
test/fixtures/rippled/requests/2-taker_gets-JPY-taker_pays-XRP.json
vendored
Normal file
13
test/fixtures/rippled/requests/2-taker_gets-JPY-taker_pays-XRP.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"taker_gets": {
|
||||
"currency": "JPY",
|
||||
"issuer": "rB3gZey7VWHYRqJHLoHDEJXJ2pEPNieKiS"
|
||||
},
|
||||
"taker_pays": {
|
||||
"currency": "XRP"
|
||||
},
|
||||
"ledger_index": "validated",
|
||||
"limit": 400,
|
||||
"taker": "rE9qNjzJXpiUbVomdv7R4xhrXVeH2oVmGR",
|
||||
"command": "book_offers"
|
||||
}
|
||||
13
test/fixtures/rippled/requests/3-taker_gets-USD-taker_pays-XRP.json
vendored
Normal file
13
test/fixtures/rippled/requests/3-taker_gets-USD-taker_pays-XRP.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"taker_gets": {
|
||||
"currency": "USD",
|
||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
||||
},
|
||||
"taker_pays": {
|
||||
"currency": "XRP"
|
||||
},
|
||||
"ledger_index": "validated",
|
||||
"limit": 400,
|
||||
"taker": "rE9qNjzJXpiUbVomdv7R4xhrXVeH2oVmGR",
|
||||
"command": "book_offers"
|
||||
}
|
||||
13
test/fixtures/rippled/requests/4-taker_gets-XRP-taker_pays-USD.json
vendored
Normal file
13
test/fixtures/rippled/requests/4-taker_gets-XRP-taker_pays-USD.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"taker_gets": {
|
||||
"currency": "XRP"
|
||||
},
|
||||
"taker_pays": {
|
||||
"currency": "USD",
|
||||
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
|
||||
},
|
||||
"ledger_index": "validated",
|
||||
"limit": 400,
|
||||
"taker": "rE9qNjzJXpiUbVomdv7R4xhrXVeH2oVmGR",
|
||||
"command": "book_offers"
|
||||
}
|
||||
3001
test/fixtures/rippled/responses/1-taker_gets-XRP-taker_pays-JPY-res.json
vendored
Normal file
3001
test/fixtures/rippled/responses/1-taker_gets-XRP-taker_pays-JPY-res.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
test/fixtures/rippled/responses/2-taker_gets-JPY-taker_pays-XRP-res.json
vendored
Normal file
6
test/fixtures/rippled/responses/2-taker_gets-JPY-taker_pays-XRP-res.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"ledger_hash": "C4F68C1CF2E0BFC09284690067ED7B1A38D4509A09DF26D66EABCE4F196CE9E9",
|
||||
"ledger_index": 42595629,
|
||||
"offers": [],
|
||||
"validated": true
|
||||
}
|
||||
6024
test/fixtures/rippled/responses/3-taker_gets-USD-taker_pays-XRP-res.json
vendored
Normal file
6024
test/fixtures/rippled/responses/3-taker_gets-USD-taker_pays-XRP-res.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
8091
test/fixtures/rippled/responses/4-taker_gets-XRP-taker_pays-USD-res.json
vendored
Normal file
8091
test/fixtures/rippled/responses/4-taker_gets-XRP-taker_pays-USD-res.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user