@riocrypto/common-server 1.0.620 → 1.0.621
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.
|
@@ -10,7 +10,7 @@ declare class BitstampClient {
|
|
|
10
10
|
"X-Auth-Version": string;
|
|
11
11
|
"Content-Type": string;
|
|
12
12
|
}>;
|
|
13
|
-
getTransactions(): Promise<any>;
|
|
13
|
+
getTransactions(limit: string, offset: string): Promise<any>;
|
|
14
14
|
}
|
|
15
15
|
export declare const buildBitstampClient: () => Promise<BitstampClient>;
|
|
16
16
|
export {};
|
|
@@ -68,9 +68,9 @@ class BitstampClient {
|
|
|
68
68
|
return headers;
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
getTransactions() {
|
|
71
|
+
getTransactions(limit, offset) {
|
|
72
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
const payload = { offset
|
|
73
|
+
const payload = { offset, limit };
|
|
74
74
|
let payload_string = new URLSearchParams(payload).toString();
|
|
75
75
|
const headers = yield this.getHeaders(payload);
|
|
76
76
|
const response = yield axios_1.default.post("https://www.bitstamp.net/api/v2/crypto-transactions/", payload_string, { headers });
|