@riocrypto/common-server 1.0.1145 → 1.0.1147
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.
|
@@ -206,12 +206,16 @@ class BitsoClient {
|
|
|
206
206
|
},
|
|
207
207
|
};
|
|
208
208
|
const signedRequestConfig = this.signRequest(requestConfig);
|
|
209
|
-
const
|
|
209
|
+
const res = yield (0, axios_1.default)(signedRequestConfig);
|
|
210
|
+
console.log("res is", res);
|
|
211
|
+
const data = res.data;
|
|
210
212
|
if (!data.success) {
|
|
211
213
|
throw new Error("Error getting Bitso fees");
|
|
212
214
|
}
|
|
213
215
|
const fees = data.payload.fees;
|
|
216
|
+
console.log("fees", fees);
|
|
214
217
|
const book = fees.find((obj) => obj.book === `${crypto.toLocaleLowerCase()}_mxn`);
|
|
218
|
+
console.log("book", book);
|
|
215
219
|
if (!book) {
|
|
216
220
|
throw new Error("Unable to get fees");
|
|
217
221
|
}
|