Fix getOrderbook (#970)

* Fix `getOrderbook` (Fix #766)
* Add `formatBidsAndAsks` as a recommended alternative to `getOrderbook`
* Add `renameCounterpartyToIssuer`
This commit is contained in:
Elliot Lee
2018-11-26 15:25:15 -08:00
committed by GitHub
parent 8384ace746
commit 0f5056221f
18 changed files with 18219 additions and 14 deletions

View 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"
}

View 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"
}

View 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"
}

View 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"
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,6 @@
{
"ledger_hash": "C4F68C1CF2E0BFC09284690067ED7B1A38D4509A09DF26D66EABCE4F196CE9E9",
"ledger_index": 42595629,
"offers": [],
"validated": true
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff