@riocrypto/common-server 1.0.2558 → 1.0.2560

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.
@@ -404,7 +404,7 @@ class BitsoClient {
404
404
  }
405
405
  let asset;
406
406
  if (crypto.toLocaleLowerCase().includes("usdc")) {
407
- asset = "usd";
407
+ asset = "usdc";
408
408
  }
409
409
  else if (crypto.toLocaleLowerCase().includes("usdt")) {
410
410
  asset = "usdt";
@@ -437,7 +437,7 @@ class BitsoClient {
437
437
  chain: network,
438
438
  network,
439
439
  asset,
440
- currency: asset,
440
+ currency: asset === "usdc" ? "usd" : asset,
441
441
  },
442
442
  };
443
443
  const signedRequestConfig = this.signRequest(requestConfig);
@@ -14,6 +14,7 @@ interface InternalTradeAttrs {
14
14
  strategy?: InternalTradeStrategy;
15
15
  coinbaseOrderId?: string;
16
16
  bitsoOrderId?: string;
17
+ binanceOrderId?: string;
17
18
  amountFilled?: number;
18
19
  limitPrice?: number;
19
20
  coinbaseConversionId?: string;
@@ -33,6 +34,7 @@ interface InternalTradeDoc extends mongoose.Document {
33
34
  strategy?: InternalTradeStrategy;
34
35
  coinbaseOrderId?: string;
35
36
  bitsoOrderId?: string;
37
+ binanceOrderId?: string;
36
38
  amountFilled?: number;
37
39
  limitPrice?: number;
38
40
  coinbaseConversionId?: string;
@@ -53,6 +53,9 @@ const buildInternalTrade = (mongoose) => {
53
53
  bitsoOrderId: {
54
54
  type: String,
55
55
  },
56
+ binanceOrderId: {
57
+ type: String,
58
+ },
56
59
  amountFilled: {
57
60
  type: Number,
58
61
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2558",
3
+ "version": "1.0.2560",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2352",
31
+ "@riocrypto/common": "^1.0.2353",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",