@yuants/data-interest-rate 0.1.21 → 0.1.23

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/dist/index.js CHANGED
@@ -1,23 +1,2 @@
1
- import { AddMigration } from '@yuants/sql';
2
- AddMigration({
3
- id: '0ed605e6-59f0-4684-a65a-54328e2af50f',
4
- name: 'create_table_interest_rate',
5
- dependencies: [],
6
- statement: `
7
- CREATE TABLE IF NOT EXISTS interest_rate (
8
- series_id TEXT NOT NULL,
9
- created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
10
- datasource_id TEXT NOT NULL,
11
- product_id TEXT NOT NULL,
12
- long_rate TEXT NOT NULL,
13
- short_rate TEXT NOT NULL,
14
- settlement_price TEXT NOT NULL,
15
- updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
16
- PRIMARY KEY (series_id, created_at)
17
- );
18
-
19
- CREATE INDEX IF NOT EXISTS idx_interest_rate_series_id_created_at ON interest_rate (series_id, created_at desc);
20
- create or replace trigger auto_update_updated_at before update on interest_rate for each row execute function update_updated_at_column();
21
- `,
22
- });
1
+ export {};
23
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAuC3C,YAAY,CAAC;IACX,EAAE,EAAE,sCAAsC;IAC1C,IAAI,EAAE,4BAA4B;IAClC,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE;;;;;;;;;;;;;;;GAeV;CACF,CAAC,CAAC","sourcesContent":["import { AddMigration } from '@yuants/sql';\n/**\n * Interest Rate when holding a product\n *\n * @public\n */\nexport interface IInterestRate {\n /**\n * Series ID (Encoded as `encodePath(datasource_id, product_id)`)\n */\n series_id: string;\n /**\n * Settlement TimestampTz\n */\n created_at: string;\n /**\n * Data source ID\n * 数据源 ID\n */\n datasource_id: string;\n /**\n * Product ID\n * 品种 ID\n */\n product_id: string;\n\n /**\n * 持有多头时,在结算时刻的收益率\n */\n long_rate: string;\n /**\n * 持有空头时,在结算时刻的收益率\n */\n short_rate: string;\n\n /** 结算价格 */\n settlement_price: string;\n}\n\nAddMigration({\n id: '0ed605e6-59f0-4684-a65a-54328e2af50f',\n name: 'create_table_interest_rate',\n dependencies: [],\n statement: `\n CREATE TABLE IF NOT EXISTS interest_rate (\n series_id TEXT NOT NULL,\n created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,\n datasource_id TEXT NOT NULL,\n product_id TEXT NOT NULL,\n long_rate TEXT NOT NULL,\n short_rate TEXT NOT NULL,\n settlement_price TEXT NOT NULL,\n updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (series_id, created_at)\n );\n\n CREATE INDEX IF NOT EXISTS idx_interest_rate_series_id_created_at ON interest_rate (series_id, created_at desc);\n create or replace trigger auto_update_updated_at before update on interest_rate for each row execute function update_updated_at_column();\n `,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Interest Rate when holding a product\n *\n * @public\n */\nexport interface IInterestRate {\n /**\n * Series ID (Encoded as `encodePath(datasource_id, product_id)`)\n */\n series_id: string;\n /**\n * Settlement TimestampTz\n */\n created_at: string;\n /**\n * Data source ID\n * 数据源 ID\n */\n datasource_id: string;\n /**\n * Product ID\n * 品种 ID\n */\n product_id: string;\n\n /**\n * 持有多头时,在结算时刻的收益率\n */\n long_rate: string;\n /**\n * 持有空头时,在结算时刻的收益率\n */\n short_rate: string;\n\n /** 结算价格 */\n settlement_price: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW;IACX,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW;IACX,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
package/lib/index.js CHANGED
@@ -1,25 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const sql_1 = require("@yuants/sql");
4
- (0, sql_1.AddMigration)({
5
- id: '0ed605e6-59f0-4684-a65a-54328e2af50f',
6
- name: 'create_table_interest_rate',
7
- dependencies: [],
8
- statement: `
9
- CREATE TABLE IF NOT EXISTS interest_rate (
10
- series_id TEXT NOT NULL,
11
- created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
12
- datasource_id TEXT NOT NULL,
13
- product_id TEXT NOT NULL,
14
- long_rate TEXT NOT NULL,
15
- short_rate TEXT NOT NULL,
16
- settlement_price TEXT NOT NULL,
17
- updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
18
- PRIMARY KEY (series_id, created_at)
19
- );
20
-
21
- CREATE INDEX IF NOT EXISTS idx_interest_rate_series_id_created_at ON interest_rate (series_id, created_at desc);
22
- create or replace trigger auto_update_updated_at before update on interest_rate for each row execute function update_updated_at_column();
23
- `,
24
- });
25
3
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,qCAA2C;AAuC3C,IAAA,kBAAY,EAAC;IACX,EAAE,EAAE,sCAAsC;IAC1C,IAAI,EAAE,4BAA4B;IAClC,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE;;;;;;;;;;;;;;;GAeV;CACF,CAAC,CAAC","sourcesContent":["import { AddMigration } from '@yuants/sql';\n/**\n * Interest Rate when holding a product\n *\n * @public\n */\nexport interface IInterestRate {\n /**\n * Series ID (Encoded as `encodePath(datasource_id, product_id)`)\n */\n series_id: string;\n /**\n * Settlement TimestampTz\n */\n created_at: string;\n /**\n * Data source ID\n * 数据源 ID\n */\n datasource_id: string;\n /**\n * Product ID\n * 品种 ID\n */\n product_id: string;\n\n /**\n * 持有多头时,在结算时刻的收益率\n */\n long_rate: string;\n /**\n * 持有空头时,在结算时刻的收益率\n */\n short_rate: string;\n\n /** 结算价格 */\n settlement_price: string;\n}\n\nAddMigration({\n id: '0ed605e6-59f0-4684-a65a-54328e2af50f',\n name: 'create_table_interest_rate',\n dependencies: [],\n statement: `\n CREATE TABLE IF NOT EXISTS interest_rate (\n series_id TEXT NOT NULL,\n created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,\n datasource_id TEXT NOT NULL,\n product_id TEXT NOT NULL,\n long_rate TEXT NOT NULL,\n short_rate TEXT NOT NULL,\n settlement_price TEXT NOT NULL,\n updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (series_id, created_at)\n );\n\n CREATE INDEX IF NOT EXISTS idx_interest_rate_series_id_created_at ON interest_rate (series_id, created_at desc);\n create or replace trigger auto_update_updated_at before update on interest_rate for each row execute function update_updated_at_column();\n `,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Interest Rate when holding a product\n *\n * @public\n */\nexport interface IInterestRate {\n /**\n * Series ID (Encoded as `encodePath(datasource_id, product_id)`)\n */\n series_id: string;\n /**\n * Settlement TimestampTz\n */\n created_at: string;\n /**\n * Data source ID\n * 数据源 ID\n */\n datasource_id: string;\n /**\n * Product ID\n * 品种 ID\n */\n product_id: string;\n\n /**\n * 持有多头时,在结算时刻的收益率\n */\n long_rate: string;\n /**\n * 持有空头时,在结算时刻的收益率\n */\n short_rate: string;\n\n /** 结算价格 */\n settlement_price: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuants/data-interest-rate",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "main": "lib/index.js",
5
5
  "module": "dist/index.js",
6
6
  "files": [
@@ -25,8 +25,8 @@
25
25
  "typescript": "~4.7.4"
26
26
  },
27
27
  "dependencies": {
28
- "@yuants/protocol": "0.42.0",
29
- "@yuants/sql": "0.9.3",
28
+ "@yuants/protocol": "0.42.1",
29
+ "@yuants/sql": "0.9.5",
30
30
  "date-fns": "~2.30.0",
31
31
  "date-fns-tz": "~2.0.0",
32
32
  "rxjs": "~7.5.6",
@@ -1,16 +1,16 @@
1
1
  {
2
- "libraries/data-interest-rate/CHANGELOG.json": "8ad2176890bd3a31db06dac150864dfb85d416ab",
3
- "libraries/data-interest-rate/CHANGELOG.md": "92add79eb9c7fd412a1404635f49f571697153af",
2
+ "libraries/data-interest-rate/CHANGELOG.json": "718a68e175ac0238d5441cb842434099dbe90814",
3
+ "libraries/data-interest-rate/CHANGELOG.md": "895672f35830dbed03e334069b401bac7a2323bf",
4
4
  "libraries/data-interest-rate/api-extractor.json": "62f4fd324425b9a235f0c117975967aab09ced0c",
5
5
  "libraries/data-interest-rate/config/jest.config.json": "4bb17bde3ee911163a3edb36a6eb71491d80b1bd",
6
6
  "libraries/data-interest-rate/config/rig.json": "f6c7b5537dc77a3170ba9f008bae3b6c3ee11956",
7
7
  "libraries/data-interest-rate/config/typescript.json": "854907e8a821f2050f6533368db160c649c25348",
8
8
  "libraries/data-interest-rate/etc/data-interest-rate.api.md": "feb35c489bbcefa513047171ae00b38371408e6e",
9
- "libraries/data-interest-rate/package.json": "7f1e500fe6d64018d15bee8ce4f35afe4b8bf691",
10
- "libraries/data-interest-rate/src/index.ts": "7f0f3179a630e9167a9e3df022eaa4dd028aaf76",
9
+ "libraries/data-interest-rate/package.json": "6882814d62d6916db0133a3c30587112907e6000",
10
+ "libraries/data-interest-rate/src/index.ts": "1b5d8106599111043ef5be33afdeb7ddf79053ae",
11
11
  "libraries/data-interest-rate/tsconfig.json": "22f94ca28b507f8ddcc21b9053158eefd3f726a9",
12
12
  "libraries/data-interest-rate/.rush/temp/shrinkwrap-deps.json": "14d204eb5804e8b263a53fcc1425c1dc56c952e8",
13
- "libraries/protocol/temp/package-deps.json": "27c770278f1d9b96a0cf86ac7295a9fce5f154b6",
14
- "libraries/sql/temp/package-deps.json": "169520f8b4884873eb4777073828c6021d2df1cc",
13
+ "libraries/protocol/temp/package-deps.json": "68f1211ef6fa964309505e53f0b94ddcaf6d2909",
14
+ "libraries/sql/temp/package-deps.json": "ad3a35187374a87704492b34a5d287432d96b6f5",
15
15
  "tools/toolkit/temp/package-deps.json": "3bef053db16659f0cdaceea64c8a8580c0131633"
16
16
  }