@riocrypto/common-server 1.0.1999 → 1.0.2003

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.
@@ -235,7 +235,7 @@ class BitsoClient {
235
235
  },
236
236
  };
237
237
  const signedRequestConfig = this.signRequest(requestConfig);
238
- const { data } = yield (0, axios_with_logging_1.default)(signedRequestConfig);
238
+ const { data } = yield (0, axios_1.default)(signedRequestConfig);
239
239
  if (!data.success) {
240
240
  throw new Error("Error getting Bitso order book trades");
241
241
  }
@@ -35,6 +35,14 @@ interface MarketDataAttrs {
35
35
  value: number;
36
36
  lastUpdated: Date;
37
37
  };
38
+ providerConversionRatesToMXN: {
39
+ [key: string]: {
40
+ [key: string]: {
41
+ value: number;
42
+ lastUpdated: Date;
43
+ };
44
+ };
45
+ };
38
46
  }
39
47
  interface MarketDataModel extends Model<MarketDataDoc> {
40
48
  build(attrs: MarketDataAttrs): MarketDataDoc;
@@ -88,6 +96,14 @@ interface MarketDataDoc extends Document {
88
96
  lastUpdated: Date;
89
97
  };
90
98
  };
99
+ providerConversionRatesToMXN: {
100
+ [key: string]: {
101
+ [key: string]: {
102
+ value: number;
103
+ lastUpdated: Date;
104
+ };
105
+ };
106
+ };
91
107
  }
92
108
  declare const buildMarketData: (mongoose: Mongoose) => MarketDataModel;
93
109
  export { buildMarketData, MarketDataDoc, MarketDataAttrs };
@@ -33,6 +33,9 @@ const buildMarketData = (mongoose) => {
33
33
  previousDayConversionRatesToUSD: {
34
34
  type: Object,
35
35
  },
36
+ providerConversionRatesToMXN: {
37
+ type: Object,
38
+ },
36
39
  }, {
37
40
  toJSON: {
38
41
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1999",
3
+ "version": "1.0.2003",
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.1756",
31
+ "@riocrypto/common": "^1.0.1757",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",