@infosel-sdk/securities-prices 0.2.2
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.
- package/LICENSE.md +5 -0
- package/README.md +542 -0
- package/common/constants/constants.d.ts +28 -0
- package/common/constants/constants.js +31 -0
- package/common/constants/constants.js.map +1 -0
- package/common/enum/exchange.enum.d.ts +5 -0
- package/common/enum/exchange.enum.js +10 -0
- package/common/enum/exchange.enum.js.map +1 -0
- package/common/enum/source.enum.d.ts +9 -0
- package/common/enum/source.enum.js +14 -0
- package/common/enum/source.enum.js.map +1 -0
- package/common/helper/utils.d.ts +4 -0
- package/common/helper/utils.js +36 -0
- package/common/helper/utils.js.map +1 -0
- package/historical/dto/historical-chart-last-traded-price.request.dto.d.ts +6 -0
- package/historical/dto/historical-chart-last-traded-price.request.dto.js +57 -0
- package/historical/dto/historical-chart-last-traded-price.request.dto.js.map +1 -0
- package/historical/dto/historical-chart.request.dto.d.ts +4 -0
- package/historical/dto/historical-chart.request.dto.js +34 -0
- package/historical/dto/historical-chart.request.dto.js.map +1 -0
- package/historical/dto/historical-report.request.dto.d.ts +5 -0
- package/historical/dto/historical-report.request.dto.js +28 -0
- package/historical/dto/historical-report.request.dto.js.map +1 -0
- package/historical/dto/historical.request.dto.d.ts +10 -0
- package/historical/dto/historical.request.dto.js +82 -0
- package/historical/dto/historical.request.dto.js.map +1 -0
- package/historical/dto/historical.response.dto.d.ts +12 -0
- package/historical/dto/historical.response.dto.js +13 -0
- package/historical/dto/historical.response.dto.js.map +1 -0
- package/historical/dto/index.d.ts +4 -0
- package/historical/dto/index.js +21 -0
- package/historical/dto/index.js.map +1 -0
- package/historical/historical.module.d.ts +2 -0
- package/historical/historical.module.js +19 -0
- package/historical/historical.module.js.map +1 -0
- package/historical/historical.service.d.ts +8 -0
- package/historical/historical.service.js +40 -0
- package/historical/historical.service.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +19 -0
- package/index.js.map +1 -0
- package/intraday/dto/index.d.ts +7 -0
- package/intraday/dto/index.js +24 -0
- package/intraday/dto/index.js.map +1 -0
- package/intraday/dto/intraday-report.dto.d.ts +13 -0
- package/intraday/dto/intraday-report.dto.js +7 -0
- package/intraday/dto/intraday-report.dto.js.map +1 -0
- package/intraday/dto/intraday-report.request.dto.d.ts +15 -0
- package/intraday/dto/intraday-report.request.dto.js +103 -0
- package/intraday/dto/intraday-report.request.dto.js.map +1 -0
- package/intraday/dto/intraday-report.response.dto.d.ts +9 -0
- package/intraday/dto/intraday-report.response.dto.js +14 -0
- package/intraday/dto/intraday-report.response.dto.js.map +1 -0
- package/intraday/dto/intraday-totals.dto.d.ts +6 -0
- package/intraday/dto/intraday-totals.dto.js +7 -0
- package/intraday/dto/intraday-totals.dto.js.map +1 -0
- package/intraday/dto/intraday.dto.d.ts +8 -0
- package/intraday/dto/intraday.dto.js +7 -0
- package/intraday/dto/intraday.dto.js.map +1 -0
- package/intraday/dto/intraday.request.dto.d.ts +7 -0
- package/intraday/dto/intraday.request.dto.js +54 -0
- package/intraday/dto/intraday.request.dto.js.map +1 -0
- package/intraday/dto/intraday.response.dto.d.ts +5 -0
- package/intraday/dto/intraday.response.dto.js +10 -0
- package/intraday/dto/intraday.response.dto.js.map +1 -0
- package/intraday/intraday.module.d.ts +2 -0
- package/intraday/intraday.module.js +19 -0
- package/intraday/intraday.module.js.map +1 -0
- package/intraday/intraday.service.d.ts +8 -0
- package/intraday/intraday.service.js +60 -0
- package/intraday/intraday.service.js.map +1 -0
- package/package.json +27 -0
- package/securities-prices-sdk.module.d.ts +2 -0
- package/securities-prices-sdk.module.js +21 -0
- package/securities-prices-sdk.module.js.map +1 -0
- package/securities-prices-sdk.service.d.ts +36 -0
- package/securities-prices-sdk.service.js +90 -0
- package/securities-prices-sdk.service.js.map +1 -0
- package/snapshot/dto/best-bid-offer.dto.d.ts +13 -0
- package/snapshot/dto/best-bid-offer.dto.js +19 -0
- package/snapshot/dto/best-bid-offer.dto.js.map +1 -0
- package/snapshot/dto/best-bid-offer.request.dto.d.ts +6 -0
- package/snapshot/dto/best-bid-offer.request.dto.js +63 -0
- package/snapshot/dto/best-bid-offer.request.dto.js.map +1 -0
- package/snapshot/dto/depth-of-book.dto.d.ts +13 -0
- package/snapshot/dto/depth-of-book.dto.js +19 -0
- package/snapshot/dto/depth-of-book.dto.js.map +1 -0
- package/snapshot/dto/depth-of-book.request.dto.d.ts +5 -0
- package/snapshot/dto/depth-of-book.request.dto.js +36 -0
- package/snapshot/dto/depth-of-book.request.dto.js.map +1 -0
- package/snapshot/dto/index.d.ts +4 -0
- package/snapshot/dto/index.js +21 -0
- package/snapshot/dto/index.js.map +1 -0
- package/snapshot/dto/last-traded-price.dto.d.ts +31 -0
- package/snapshot/dto/last-traded-price.dto.js +38 -0
- package/snapshot/dto/last-traded-price.dto.js.map +1 -0
- package/snapshot/dto/last-traded-price.request.dto.d.ts +5 -0
- package/snapshot/dto/last-traded-price.request.dto.js +37 -0
- package/snapshot/dto/last-traded-price.request.dto.js.map +1 -0
- package/snapshot/dto/returns.dto.d.ts +8 -0
- package/snapshot/dto/returns.dto.js +16 -0
- package/snapshot/dto/returns.dto.js.map +1 -0
- package/snapshot/dto/returns.request.dto.d.ts +5 -0
- package/snapshot/dto/returns.request.dto.js +41 -0
- package/snapshot/dto/returns.request.dto.js.map +1 -0
- package/snapshot/snapshot.module.d.ts +2 -0
- package/snapshot/snapshot.module.js +19 -0
- package/snapshot/snapshot.module.js.map +1 -0
- package/snapshot/snapshot.service.d.ts +16 -0
- package/snapshot/snapshot.service.js +81 -0
- package/snapshot/snapshot.service.js.map +1 -0
- package/tsconfig.lib.tsbuildinfo +1 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isFirstDateAfterSecondDate = exports.parseDate = exports.isValidDate = exports.parseNumber = void 0;
|
|
4
|
+
const parseNumber = (value) => {
|
|
5
|
+
if (typeof value === 'string') {
|
|
6
|
+
return !value || isNaN(Number(value)) ? null : parseFloat(value);
|
|
7
|
+
}
|
|
8
|
+
return value ?? null;
|
|
9
|
+
};
|
|
10
|
+
exports.parseNumber = parseNumber;
|
|
11
|
+
const isValidDate = (dateString) => {
|
|
12
|
+
const date = new Date(dateString);
|
|
13
|
+
return !isNaN(date.getTime());
|
|
14
|
+
};
|
|
15
|
+
exports.isValidDate = isValidDate;
|
|
16
|
+
const parseDate = (dateString) => {
|
|
17
|
+
if (!(0, exports.isValidDate)(dateString)) {
|
|
18
|
+
throw new Error('Invalid date string');
|
|
19
|
+
}
|
|
20
|
+
const date = new Date(dateString);
|
|
21
|
+
return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
22
|
+
};
|
|
23
|
+
exports.parseDate = parseDate;
|
|
24
|
+
function isFirstDateAfterSecondDate(dateStringA, dateStringB) {
|
|
25
|
+
if (!(0, exports.isValidDate)(dateStringA) || !(0, exports.isValidDate)(dateStringB)) {
|
|
26
|
+
throw new Error('Invalid date string');
|
|
27
|
+
}
|
|
28
|
+
const zero = 0;
|
|
29
|
+
const dateA = new Date(dateStringA);
|
|
30
|
+
dateA.setUTCHours(zero, zero, zero, zero);
|
|
31
|
+
const dateB = new Date(dateStringB);
|
|
32
|
+
dateB.setUTCHours(zero, zero, zero, zero);
|
|
33
|
+
return dateA > dateB;
|
|
34
|
+
}
|
|
35
|
+
exports.isFirstDateAfterSecondDate = isFirstDateAfterSecondDate;
|
|
36
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../libs/securities-prices-sdk/src/common/helper/utils.ts"],"names":[],"mappings":";;;AAAO,MAAM,WAAW,GAAG,CAAC,KAAsB,EAAU,EAAE;IAC5D,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7B,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;KAClE;IAED,OAAO,KAAK,IAAI,IAAI,CAAC;AACvB,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB;AAEK,MAAM,WAAW,GAAG,CAAC,UAAkB,EAAW,EAAE;IACzD,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;IAElC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAChC,CAAC,CAAC;AAJW,QAAA,WAAW,eAItB;AAEK,MAAM,SAAS,GAAG,CAAC,UAAkB,EAAQ,EAAE;IACpD,IAAI,CAAC,IAAA,mBAAW,EAAC,UAAU,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;KACxC;IAED,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;IAElC,OAAO,IAAI,IAAI,CACb,IAAI,CAAC,GAAG,CACN,IAAI,CAAC,WAAW,EAAE,EAClB,IAAI,CAAC,QAAQ,EAAE,EACf,IAAI,CAAC,OAAO,EAAE,EACd,IAAI,CAAC,QAAQ,EAAE,EACf,IAAI,CAAC,UAAU,EAAE,EACjB,IAAI,CAAC,UAAU,EAAE,EACjB,IAAI,CAAC,eAAe,EAAE,CACvB,CACF,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,SAAS,aAkBpB;AAEF,SAAgB,0BAA0B,CAAC,WAAmB,EAAE,WAAmB;IACjF,IAAI,CAAC,IAAA,mBAAW,EAAC,WAAW,CAAC,IAAI,CAAC,IAAA,mBAAW,EAAC,WAAW,CAAC,EAAE;QAC1D,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;KACxC;IAED,MAAM,IAAI,GAAG,CAAC,CAAC;IACf,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC;IACpC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1C,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC;IACpC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAE1C,OAAO,KAAK,GAAG,KAAK,CAAC;AACvB,CAAC;AAZD,gEAYC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HistoricalChartLastTradedPriceRequestDto = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const constants_1 = require("../../common/constants/constants");
|
|
17
|
+
const exchange_enum_1 = require("../../common/enum/exchange.enum");
|
|
18
|
+
const MIN_MONTHS_BACK_ALLOWED = 1;
|
|
19
|
+
const MAX_MONTHS_BACK_ALLOWED = 240;
|
|
20
|
+
class HistoricalChartLastTradedPriceRequestDto {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.exchange = exchange_enum_1.Exchanges.BMV;
|
|
23
|
+
this.interval = constants_1.Intervals.daily;
|
|
24
|
+
this.period = Number(MIN_MONTHS_BACK_ALLOWED);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.HistoricalChartLastTradedPriceRequestDto = HistoricalChartLastTradedPriceRequestDto;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
32
|
+
if (typeof value === 'string')
|
|
33
|
+
return value.trim();
|
|
34
|
+
throw new common_1.BadRequestException('There are multiple parameters of "symbol"');
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], HistoricalChartLastTradedPriceRequestDto.prototype, "symbol", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_validator_1.IsEnum)(exchange_enum_1.Exchanges, { message: `Exchange must be one of the following values: ${Object.values(exchange_enum_1.Exchanges)}` }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], HistoricalChartLastTradedPriceRequestDto.prototype, "exchange", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsEnum)(constants_1.Intervals, { message: `Interval must be one of the following values: ${Object.values(constants_1.Intervals)}` }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], HistoricalChartLastTradedPriceRequestDto.prototype, "interval", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsInt)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsPositive)(),
|
|
53
|
+
(0, class_validator_1.Min)(MIN_MONTHS_BACK_ALLOWED),
|
|
54
|
+
(0, class_validator_1.Max)(MAX_MONTHS_BACK_ALLOWED),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], HistoricalChartLastTradedPriceRequestDto.prototype, "period", void 0);
|
|
57
|
+
//# sourceMappingURL=historical-chart-last-traded-price.request.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"historical-chart-last-traded-price.request.dto.js","sourceRoot":"","sources":["../../../../../libs/securities-prices-sdk/src/historical/dto/historical-chart-last-traded-price.request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAqD;AACrD,yDAAuE;AACvE,qDAAwG;AACxG,gEAA6D;AAC7D,mEAA4D;AAE5D,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAClC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpC,MAAa,wCAAwC;IAArD;QAWE,aAAQ,GAAW,yBAAS,CAAC,GAAG,CAAC;QAIjC,aAAQ,GAAY,qBAAS,CAAC,KAAK,CAAC;QAQpC,WAAM,GAAY,MAAM,CAAC,uBAAuB,CAAC,CAAC;IACpD,CAAC;CAAA;AAxBD,4FAwBC;AAjBC;IANC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE;QAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;QACnD,MAAM,IAAI,4BAAmB,CAAC,2CAA2C,CAAC,CAAC;IAC7E,CAAC,CAAC;;wEACa;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,yBAAS,EAAE,EAAE,OAAO,EAAE,iDAAiD,MAAM,CAAC,MAAM,CAAC,yBAAS,CAAC,EAAE,EAAE,CAAC;;0EAC3E;AAIjC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,qBAAS,EAAE,EAAE,OAAO,EAAE,iDAAiD,MAAM,CAAC,MAAM,CAAC,qBAAS,CAAC,EAAE,EAAE,CAAC;;0EACxE;AAQpC;IANC,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAG,EAAC,uBAAuB,CAAC;IAC5B,IAAA,qBAAG,EAAC,uBAAuB,CAAC;;wEACqB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HistoricalChartRequestDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const historical_request_dto_1 = require("./historical.request.dto");
|
|
16
|
+
const MIN_MONTHS_BACK_ALLOWED = 1;
|
|
17
|
+
const MAX_MONTHS_BACK_ALLOWED = 240;
|
|
18
|
+
class HistoricalChartRequestDto extends historical_request_dto_1.HistoricalRequestDto {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.period = Number(process.env.MIN_MONTHS_BACK_ALLOWED);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.HistoricalChartRequestDto = HistoricalChartRequestDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsInt)(),
|
|
27
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsPositive)(),
|
|
30
|
+
(0, class_validator_1.Min)(MIN_MONTHS_BACK_ALLOWED),
|
|
31
|
+
(0, class_validator_1.Max)(MAX_MONTHS_BACK_ALLOWED),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], HistoricalChartRequestDto.prototype, "period", void 0);
|
|
34
|
+
//# sourceMappingURL=historical-chart.request.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"historical-chart.request.dto.js","sourceRoot":"","sources":["../../../../../libs/securities-prices-sdk/src/historical/dto/historical-chart.request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA0E;AAC1E,qEAAgE;AAEhE,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAClC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AACpC,MAAa,yBAA0B,SAAQ,6CAAoB;IAAnE;;QAOE,WAAM,GAAY,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;IAChE,CAAC;CAAA;AARD,8DAQC;AADC;IANC,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAG,EAAC,uBAAuB,CAAC;IAC5B,IAAA,qBAAG,EAAC,uBAAuB,CAAC;;yDACiC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HistoricalReportRequestDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const historical_request_dto_1 = require("./historical.request.dto");
|
|
15
|
+
class HistoricalReportRequestDto extends historical_request_dto_1.HistoricalRequestDto {
|
|
16
|
+
}
|
|
17
|
+
exports.HistoricalReportRequestDto = HistoricalReportRequestDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
(0, class_validator_1.IsISO8601)({ strict: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], HistoricalReportRequestDto.prototype, "startDate", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
(0, class_validator_1.IsISO8601)({ strict: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], HistoricalReportRequestDto.prototype, "endDate", void 0);
|
|
28
|
+
//# sourceMappingURL=historical-report.request.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"historical-report.request.dto.js","sourceRoot":"","sources":["../../../../../libs/securities-prices-sdk/src/historical/dto/historical-report.request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AACxD,qEAAgE;AAChE,MAAa,0BAA2B,SAAQ,6CAAoB;CAQnE;AARD,gEAQC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,MAAM,EAAE,IAAI,EAAS,CAAC;;6DACjB;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,MAAM,EAAE,IAAI,EAAS,CAAC;;2DACnB"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HistoricalRequestDto = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const constants_1 = require("../../common/constants/constants");
|
|
17
|
+
const exchange_enum_1 = require("../../common/enum/exchange.enum");
|
|
18
|
+
const OFFSET_DEFAULT = 0;
|
|
19
|
+
const validOrderByFields = ['date', 'closing_price'];
|
|
20
|
+
class HistoricalRequestDto {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.exchange = exchange_enum_1.Exchanges.BMV;
|
|
23
|
+
this.interval = constants_1.Intervals.daily;
|
|
24
|
+
this.offset = OFFSET_DEFAULT;
|
|
25
|
+
this.orderBy = 'date';
|
|
26
|
+
this.order = constants_1.Order.ASC;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.HistoricalRequestDto = HistoricalRequestDto;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
34
|
+
if (typeof value === 'string')
|
|
35
|
+
return value.trim();
|
|
36
|
+
throw new common_1.BadRequestException('There are multiple parameters of "symbol"');
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], HistoricalRequestDto.prototype, "symbol", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsEnum)(exchange_enum_1.Exchanges, { message: `Exchange must be one of the following values: ${Object.values(exchange_enum_1.Exchanges)}` }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], HistoricalRequestDto.prototype, "exchange", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsEnum)(constants_1.Intervals, { message: `Interval must be one of the following values: ${Object.values(constants_1.Intervals)}` }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], HistoricalRequestDto.prototype, "interval", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsInt)(),
|
|
52
|
+
(0, class_validator_1.IsPositive)(),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], HistoricalRequestDto.prototype, "limit", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsInt)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.Min)(OFFSET_DEFAULT),
|
|
61
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], HistoricalRequestDto.prototype, "offset", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, class_validator_1.IsIn)(validOrderByFields),
|
|
68
|
+
(0, class_transformer_1.Type)(() => String),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], HistoricalRequestDto.prototype, "orderBy", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsEnum)(constants_1.Order, { message: `Order must be one of the following values: ${Object.values(constants_1.Order)}` }),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], HistoricalRequestDto.prototype, "order", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsBoolean)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_transformer_1.Transform)(({ value }) => value === 'true'),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], HistoricalRequestDto.prototype, "mock", void 0);
|
|
82
|
+
//# sourceMappingURL=historical.request.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"historical.request.dto.js","sourceRoot":"","sources":["../../../../../libs/securities-prices-sdk/src/historical/dto/historical.request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAqD;AACrD,yDAAuE;AACvE,qDAAoH;AACpH,gEAAoE;AACpE,mEAA4D;AAE5D,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAErD,MAAa,oBAAoB;IAAjC;QAWE,aAAQ,GAAW,yBAAS,CAAC,GAAG,CAAC;QAIjC,aAAQ,GAAY,qBAAS,CAAC,KAAK,CAAC;QAYpC,WAAM,GAAY,cAAc,CAAC;QAMjC,YAAO,GAAY,MAAM,CAAC;QAI1B,UAAK,GAAY,iBAAK,CAAC,GAAG,CAAC;IAM7B,CAAC;CAAA;AA3CD,oDA2CC;AApCC;IANC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE;QAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;QACnD,MAAM,IAAI,4BAAmB,CAAC,2CAA2C,CAAC,CAAC;IAC7E,CAAC,CAAC;;oDACa;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,yBAAS,EAAE,EAAE,OAAO,EAAE,iDAAiD,MAAM,CAAC,MAAM,CAAC,yBAAS,CAAC,EAAE,EAAE,CAAC;;sDAC3E;AAIjC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,qBAAS,EAAE,EAAE,OAAO,EAAE,iDAAiD,MAAM,CAAC,MAAM,CAAC,qBAAS,CAAC,EAAE,EAAE,CAAC;;sDACxE;AAMpC;IAJC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mDACJ;AAMf;IAJC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAG,EAAC,cAAc,CAAC;IACnB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACc;AAMjC;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,kBAAkB,CAAC;IACxB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACO;AAI1B;IAFC,IAAA,wBAAM,EAAC,iBAAK,EAAE,EAAE,OAAO,EAAE,8CAA8C,MAAM,CAAC,MAAM,CAAC,iBAAK,CAAC,EAAE,EAAE,CAAC;IAChG,IAAA,4BAAU,GAAE;;mDACc;AAK3B;IAHC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC;;kDAC5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class HistoricalDto {
|
|
2
|
+
datetime: string;
|
|
3
|
+
open: number;
|
|
4
|
+
close: number;
|
|
5
|
+
high: number;
|
|
6
|
+
low: number;
|
|
7
|
+
volume: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class HistoricalResponseDto {
|
|
10
|
+
historical: Array<HistoricalDto>;
|
|
11
|
+
constructor(historical: Array<HistoricalDto>);
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HistoricalResponseDto = exports.HistoricalDto = void 0;
|
|
4
|
+
class HistoricalDto {
|
|
5
|
+
}
|
|
6
|
+
exports.HistoricalDto = HistoricalDto;
|
|
7
|
+
class HistoricalResponseDto {
|
|
8
|
+
constructor(historical) {
|
|
9
|
+
this.historical = historical;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.HistoricalResponseDto = HistoricalResponseDto;
|
|
13
|
+
//# sourceMappingURL=historical.response.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"historical.response.dto.js","sourceRoot":"","sources":["../../../../../libs/securities-prices-sdk/src/historical/dto/historical.response.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAOzB;AAPD,sCAOC;AACD,MAAa,qBAAqB;IAGhC,YAAY,UAAgC;QAC1C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;AAND,sDAMC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./historical-chart.request.dto"), exports);
|
|
18
|
+
__exportStar(require("./historical.response.dto"), exports);
|
|
19
|
+
__exportStar(require("./historical-report.request.dto"), exports);
|
|
20
|
+
__exportStar(require("./historical-chart-last-traded-price.request.dto"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/securities-prices-sdk/src/historical/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,4DAA0C;AAC1C,kEAAgD;AAChD,mFAAiE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.HistoricalModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const historical_service_1 = require("./historical.service");
|
|
12
|
+
let HistoricalModule = exports.HistoricalModule = class HistoricalModule {
|
|
13
|
+
};
|
|
14
|
+
exports.HistoricalModule = HistoricalModule = __decorate([
|
|
15
|
+
(0, common_1.Module)({
|
|
16
|
+
providers: [historical_service_1.HistoricalService],
|
|
17
|
+
})
|
|
18
|
+
], HistoricalModule);
|
|
19
|
+
//# sourceMappingURL=historical.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"historical.module.js","sourceRoot":"","sources":["../../../../libs/securities-prices-sdk/src/historical/historical.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6DAAyD;AAKlD,IAAM,gBAAgB,8BAAtB,MAAM,gBAAgB;CAAG,CAAA;2BAAnB,gBAAgB;IAH5B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,sCAAiB,CAAC;KAC/B,CAAC;GACW,gBAAgB,CAAG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InfoselHttpClient } from '@infosel-sdk/core';
|
|
2
|
+
import { HistoricalChartRequestDto, HistoricalReportRequestDto, HistoricalResponseDto } from './dto';
|
|
3
|
+
export declare class HistoricalService {
|
|
4
|
+
private readonly infoselHttpClient;
|
|
5
|
+
constructor(infoselHttpClient: InfoselHttpClient);
|
|
6
|
+
getHistoricalChart(historicalChartRequestDto: HistoricalChartRequestDto): Promise<HistoricalResponseDto>;
|
|
7
|
+
getHistoricalReport(historicalReportRequestDto: HistoricalReportRequestDto): Promise<HistoricalResponseDto>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HistoricalService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const core_1 = require("@infosel-sdk/core");
|
|
15
|
+
let HistoricalService = exports.HistoricalService = class HistoricalService {
|
|
16
|
+
constructor(infoselHttpClient) {
|
|
17
|
+
this.infoselHttpClient = infoselHttpClient;
|
|
18
|
+
}
|
|
19
|
+
async getHistoricalChart(historicalChartRequestDto) {
|
|
20
|
+
return this.infoselHttpClient.get('/historical/chart', {
|
|
21
|
+
params: historicalChartRequestDto,
|
|
22
|
+
headers: {
|
|
23
|
+
'Content-Type': 'application/json',
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
async getHistoricalReport(historicalReportRequestDto) {
|
|
28
|
+
return this.infoselHttpClient.get('/historical/report', {
|
|
29
|
+
params: historicalReportRequestDto,
|
|
30
|
+
headers: {
|
|
31
|
+
'Content-Type': 'application/json',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.HistoricalService = HistoricalService = __decorate([
|
|
37
|
+
(0, common_1.Injectable)(),
|
|
38
|
+
__metadata("design:paramtypes", [core_1.InfoselHttpClient])
|
|
39
|
+
], HistoricalService);
|
|
40
|
+
//# sourceMappingURL=historical.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"historical.service.js","sourceRoot":"","sources":["../../../../libs/securities-prices-sdk/src/historical/historical.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,4CAAsD;AAI/C,IAAM,iBAAiB,+BAAvB,MAAM,iBAAiB;IAC5B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAErE,KAAK,CAAC,kBAAkB,CAAC,yBAAoD;QAC3E,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAwB,mBAAmB,EAAE;YAC5E,MAAM,EAAE,yBAAyB;YACjC,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,0BAAsD;QAC9E,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAwB,oBAAoB,EAAE;YAC7E,MAAM,EAAE,0BAA0B;YAClC,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;4BApBY,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEqC,wBAAiB;GADtD,iBAAiB,CAoB7B"}
|
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./securities-prices-sdk.module"), exports);
|
|
18
|
+
__exportStar(require("./securities-prices-sdk.service"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../libs/securities-prices-sdk/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,kEAAgD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './intraday-report.dto';
|
|
2
|
+
export * from './intraday-report.request.dto';
|
|
3
|
+
export * from './intraday-report.response.dto';
|
|
4
|
+
export * from './intraday-totals.dto';
|
|
5
|
+
export * from './intraday.dto';
|
|
6
|
+
export * from './intraday.request.dto';
|
|
7
|
+
export * from './intraday.response.dto';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./intraday-report.dto"), exports);
|
|
18
|
+
__exportStar(require("./intraday-report.request.dto"), exports);
|
|
19
|
+
__exportStar(require("./intraday-report.response.dto"), exports);
|
|
20
|
+
__exportStar(require("./intraday-totals.dto"), exports);
|
|
21
|
+
__exportStar(require("./intraday.dto"), exports);
|
|
22
|
+
__exportStar(require("./intraday.request.dto"), exports);
|
|
23
|
+
__exportStar(require("./intraday.response.dto"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/securities-prices-sdk/src/intraday/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gEAA8C;AAC9C,iEAA+C;AAC/C,wDAAsC;AACtC,iDAA+B;AAC/B,yDAAuC;AACvC,0DAAwC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class IntradayReportDto {
|
|
2
|
+
rowNumber: number;
|
|
3
|
+
tradeTime: string;
|
|
4
|
+
sellParticipant: string;
|
|
5
|
+
sellParticipantId: number;
|
|
6
|
+
buyParticipant: string;
|
|
7
|
+
buyParticipantId: number;
|
|
8
|
+
executedQuantity: number;
|
|
9
|
+
executedPrice: number;
|
|
10
|
+
amount: number;
|
|
11
|
+
priceSetter: boolean;
|
|
12
|
+
chart: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intraday-report.dto.js","sourceRoot":"","sources":["../../../../../libs/securities-prices-sdk/src/intraday/dto/intraday-report.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;CAY7B;AAZD,8CAYC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class IntradayReportRequestDto {
|
|
2
|
+
symbol: string;
|
|
3
|
+
exchange: string;
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate: string;
|
|
6
|
+
periodicity?: number;
|
|
7
|
+
buyerId?: number;
|
|
8
|
+
sellerId?: number;
|
|
9
|
+
buyParticipant?: string;
|
|
10
|
+
sellParticipant?: string;
|
|
11
|
+
offset: number;
|
|
12
|
+
limit: number;
|
|
13
|
+
order?: string;
|
|
14
|
+
includeTotals?: boolean;
|
|
15
|
+
}
|