@riocrypto/common-server 1.0.2175 → 1.0.2176

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.
@@ -27,6 +27,14 @@ interface MarketDataAttrs {
27
27
  frozen?: boolean;
28
28
  };
29
29
  };
30
+ externalTradingProviderPrices: {
31
+ [key: string]: {
32
+ [key: string]: {
33
+ value: number;
34
+ lastUpdated: Date;
35
+ };
36
+ };
37
+ };
30
38
  buyOrderLiquidityUSD: {
31
39
  value: number;
32
40
  lastUpdated: Date;
@@ -104,6 +112,14 @@ interface MarketDataDoc extends Document {
104
112
  };
105
113
  };
106
114
  };
115
+ externalTradingProviderPrices: {
116
+ [key: string]: {
117
+ [key: string]: {
118
+ value: number;
119
+ lastUpdated: Date;
120
+ };
121
+ };
122
+ };
107
123
  }
108
124
  declare const buildMarketData: (mongoose: Mongoose) => MarketDataModel;
109
125
  export { buildMarketData, MarketDataDoc, MarketDataAttrs };
@@ -36,6 +36,9 @@ const buildMarketData = (mongoose) => {
36
36
  providerConversionRatesToMXN: {
37
37
  type: Object,
38
38
  },
39
+ externalTradingProviderPrices: {
40
+ type: Object,
41
+ },
39
42
  }, {
40
43
  toJSON: {
41
44
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2175",
3
+ "version": "1.0.2176",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",