@riocrypto/common-server 1.0.1148 → 1.0.1150
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.
|
@@ -146,7 +146,7 @@ class BitsoClient {
|
|
|
146
146
|
return data.payload[0];
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
getOpenOrders(
|
|
149
|
+
getOpenOrders() {
|
|
150
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
151
|
const requestConfig = {
|
|
152
152
|
method: "GET",
|
|
@@ -157,7 +157,7 @@ class BitsoClient {
|
|
|
157
157
|
};
|
|
158
158
|
const signedRequestConfig = this.signRequest(requestConfig);
|
|
159
159
|
const { data } = yield (0, axios_1.default)(signedRequestConfig);
|
|
160
|
-
if (!data.success
|
|
160
|
+
if (!data.success) {
|
|
161
161
|
throw new Error("Error getting Bitso order");
|
|
162
162
|
}
|
|
163
163
|
return data.payload;
|