@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.
@@ -25,7 +25,7 @@ declare class BitsoClient {
25
25
  status: "partially filled" | "queued" | "open" | "closed";
26
26
  type: "limit";
27
27
  }>;
28
- getOpenOrders(oid: string): Promise<{
28
+ getOpenOrders(): Promise<{
29
29
  book: string;
30
30
  original_amount: string;
31
31
  unfilled_amount: string;
@@ -146,7 +146,7 @@ class BitsoClient {
146
146
  return data.payload[0];
147
147
  });
148
148
  }
149
- getOpenOrders(oid) {
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 || !data.payload.length) {
160
+ if (!data.success) {
161
161
  throw new Error("Error getting Bitso order");
162
162
  }
163
163
  return data.payload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1148",
3
+ "version": "1.0.1150",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",