nest-wrapper-kiwoom 0.40.0 → 0.41.0

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/README.md CHANGED
@@ -16,7 +16,7 @@ npm install nest-wrapper-kiwoom
16
16
 
17
17
  - 계좌
18
18
  - 공매도
19
- - 기관/외국인 (추후 지원 예정)
19
+ - 기관/외국인
20
20
  - 대차거래 (추후 지원 예정)
21
21
  - 순위정보 (추후 지원 예정)
22
22
  - 시세 (추후 지원 예정)
@@ -1,6 +1,6 @@
1
1
  import { HttpService } from '@nestjs/axios';
2
2
  import { Oauth2 } from '@services/oauth2.service';
3
- import { KA10008Param, KA10008Response } from '@src/types/foreign-institutional';
3
+ import { KA10008Param, KA10008Response, KA10009Param, KA10009Response } from '@src/types';
4
4
  export declare class ForeignInstitutionalService {
5
5
  private readonly httpService;
6
6
  private readonly oauth2;
@@ -10,4 +10,5 @@ export declare class ForeignInstitutionalService {
10
10
  constructor(httpService: HttpService, oauth2: Oauth2);
11
11
  private executeApiCall;
12
12
  ka10008(ka10008Param: KA10008Param): Promise<KA10008Response>;
13
+ ka10009(ka10009Param: KA10009Param): Promise<KA10009Response>;
13
14
  }
@@ -104,6 +104,13 @@ var ForeignInstitutionalService = (function () {
104
104
  });
105
105
  });
106
106
  };
107
+ ForeignInstitutionalService.prototype.ka10009 = function (ka10009Param) {
108
+ return __awaiter(this, void 0, void 0, function () {
109
+ return __generator(this, function (_a) {
110
+ return [2, this.executeApiCall('ka10009', ka10009Param)];
111
+ });
112
+ });
113
+ };
107
114
  ForeignInstitutionalService = __decorate([
108
115
  (0, common_1.Injectable)(),
109
116
  __metadata("design:paramtypes", [axios_1.HttpService,
@@ -1 +1 @@
1
- {"version":3,"file":"foreign-institutional.service.js","sourceRoot":"","sources":["../../src/services/foreign-institutional.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA4C;AAC5C,yCAA0E;AAC1E,2DAAkD;AAIlD;IAKC,qCACkB,WAAwB,EACxB,MAAc;QADd,gBAAW,GAAX,WAAW,CAAa;QACxB,WAAM,GAAN,MAAM,CAAQ;QANf,WAAM,GAAW,wBAAwB,CAAC;QAC1C,QAAG,GAAW,qBAAqB,CAAC;QAOpD,IAAI,CAAC,WAAW,GAAG;YAClB,cAAc,EAAE,gCAAgC;YAChD,SAAS,EAAE,GAAG;YACd,UAAU,EAAE,GAAG;SACf,CAAC;IACH,CAAC;IAEa,oDAAc,GAA5B,UAAgD,KAAa,EAAE,MAAc;;;;;;;;2CAGvE,IAAI,CAAC,WAAW;+BACnB,QAAQ,EAAE,KAAK;wBACA,WAAM,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,EAAA;;wBAH5C,OAAO,sCAGZ,gBAAa,GAAE,SAAkC,QACjD;wBACgB,WAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAG,IAAI,CAAC,MAAM,SAAG,IAAI,CAAC,GAAG,CAAE,eAAO,MAAM,GAAI,EAAE,OAAO,SAAA,EAAE,CAAC,EAAA;;wBAAxG,QAAQ,GAAG,SAA6F;wBAC9G,WAAO,QAAQ,CAAC,IAAiB,EAAC;;;wBAElC,MAAM,IAAI,qCAA4B,CAAC,GAAC,CAAC,OAAO,CAAC,CAAC;;;;;KAEnD;IAEK,6CAAO,GAAb,UAAc,YAA0B;;;gBACvC,WAAO,IAAI,CAAC,cAAc,CAAgC,SAAS,EAAE,YAAY,CAAC,EAAC;;;KACnF;IAhCW,2BAA2B;QADvC,IAAA,mBAAU,GAAE;yCAOmB,mBAAW;YAChB,uBAAM;OAPpB,2BAA2B,CAiCvC;IAAD,kCAAC;CAAA,AAlCD,IAkCC;AAjCY,kEAA2B"}
1
+ {"version":3,"file":"foreign-institutional.service.js","sourceRoot":"","sources":["../../src/services/foreign-institutional.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;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AAD,kCAAC;CAAA,AAtCD,IAsCC;AArCY,kEAA2B"}
@@ -1 +1,2 @@
1
1
  export * from './ka10008';
2
+ export * from './ka10009';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ka10008"), exports);
18
+ __exportStar(require("./ka10009"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/foreign-institutional/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/foreign-institutional/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B"}
@@ -0,0 +1,14 @@
1
+ export interface KA10009Param {
2
+ stk_cd: string;
3
+ }
4
+ export interface KA10009Response {
5
+ date: string;
6
+ close_pric: string;
7
+ pre: string;
8
+ orgn_dt_acc: string;
9
+ orgn_daly_nettrde: string;
10
+ frgnr_daly_nettrde: string;
11
+ frgnr_qota_rt: string;
12
+ return_code: number;
13
+ return_msg: string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ka10009.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ka10009.js","sourceRoot":"","sources":["../../../src/types/foreign-institutional/ka10009.ts"],"names":[],"mappings":""}
@@ -2,3 +2,4 @@ export * from './oauth2';
2
2
  export * from './order';
3
3
  export * from './account';
4
4
  export * from './etf';
5
+ export * from './foreign-institutional';
@@ -18,4 +18,5 @@ __exportStar(require("./oauth2"), exports);
18
18
  __exportStar(require("./order"), exports);
19
19
  __exportStar(require("./account"), exports);
20
20
  __exportStar(require("./etf"), exports);
21
+ __exportStar(require("./foreign-institutional"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB;AACtB,0DAAwC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nest-wrapper-kiwoom",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "homepage": "https://github.com/gong-yeongbin/nest-wrapper-kiwoom",
5
5
  "description": "A Nest module wrapper for 키움 REST API",
6
6
  "main": "dist/index.js",