@bithomp/xrpl-api 2.7.7 → 2.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -100,15 +100,15 @@ async function getAccountAllOffers(account, options = {}) {
|
|
|
100
100
|
response.limit = accountOffers.length;
|
|
101
101
|
break;
|
|
102
102
|
}
|
|
103
|
-
if (response.offers.length === 0) {
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
103
|
if (response.marker) {
|
|
107
104
|
options.marker = response.marker;
|
|
108
105
|
}
|
|
109
106
|
else {
|
|
110
107
|
break;
|
|
111
108
|
}
|
|
109
|
+
if (response.offers.length === 0) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
112
|
}
|
|
113
113
|
if (response.error) {
|
|
114
114
|
const { error, error_code, error_message, status, validated } = response;
|
|
@@ -2,10 +2,14 @@ import { LedgerIndex } from "../models/ledger";
|
|
|
2
2
|
import { OrderbookInfo } from "../models/book_offers";
|
|
3
3
|
import { IssuedCurrency } from "../types";
|
|
4
4
|
import { ErrorResponse } from "../models/base_model";
|
|
5
|
-
export interface
|
|
5
|
+
export interface GetGetBookOffersOptions {
|
|
6
6
|
ledgerIndex?: LedgerIndex;
|
|
7
7
|
limit?: number;
|
|
8
8
|
marker?: any;
|
|
9
9
|
}
|
|
10
|
-
export declare function getBookOffers(taker: string, takerGets: IssuedCurrency, takerPays: IssuedCurrency, options?:
|
|
11
|
-
export
|
|
10
|
+
export declare function getBookOffers(taker: string, takerGets: IssuedCurrency, takerPays: IssuedCurrency, options?: GetGetBookOffersOptions): Promise<object | ErrorResponse>;
|
|
11
|
+
export interface GetGetOrderBookOptions {
|
|
12
|
+
ledgerIndex?: LedgerIndex;
|
|
13
|
+
limit?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function getOrderbook(taker: string, orderbook: OrderbookInfo, options?: GetGetOrderBookOptions): Promise<object | ErrorResponse>;
|