@kinetiq-research/asset-metadata 1.3.0 → 2.0.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.
@@ -0,0 +1,114 @@
1
+ {
2
+ "asset-metadata": {
3
+ "km:aapl": {
4
+ "description_short": "Apple, Inc.",
5
+ "description_medium": "Apple, Inc. ดำเนินธุรกิจด้านการออกแบบ ผลิต และจำหน่ายสมาร์ทโฟน คอมพิวเตอร์ส่วนบุคคล แท็บเล็ต อุปกรณ์สวมใส่และอุปกรณ์เสริม รวมถึงบริการที่เกี่ยวข้อง",
6
+ "oracle": "NASDAQ: AAPL"
7
+ },
8
+ "km:baba": {
9
+ "description_short": "Alibaba Group Holding Ltd.",
10
+ "description_medium": "Alibaba Group Holding Ltd. เป็นบริษัทเทคโนโลยีข้ามชาติของจีนที่ดำเนินธุรกิจด้านอีคอมเมิร์ซ คลาวด์คอมพิวติ้ง สื่อดิจิทัล และบริการทางการเงิน",
11
+ "oracle": "NYSE: BABA"
12
+ },
13
+ "km:bmnr": {
14
+ "description_short": "Bitmine Immersion Technologies, Inc",
15
+ "description_medium": "Bitmine Immersion Technologies, Inc. เป็นบริษัทเทคโนโลยีที่มุ่งเน้นการซื้อ ถือครอง และบริหารจัดการ ETH อย่างเชิงรุกในฐานะสินทรัพย์สำรองหลักของคลัง",
16
+ "oracle": "NYSEAMERICAN: BMNR"
17
+ },
18
+ "km:gldmine": {
19
+ "description_short": "ติดตามบริษัทเหมืองทองคำและเงิน",
20
+ "description_medium": "ติดตามดัชนีถ่วงน้ำหนักตามมูลค่าตลาดของบริษัททั่วโลกที่เกี่ยวข้องกับกิจกรรมการทำเหมืองทองคำและเงิน",
21
+ "oracle": "NYSEARCA: GDX"
22
+ },
23
+ "km:gold": {
24
+ "description_short": "ติดตามราคาทองคำจุดส่งมอบทันที",
25
+ "description_medium": "ติดตามราคาทองคำจุดส่งมอบทันที หักค่าใช้จ่ายและหนี้สิน โดยใช้ทองคำแท่งที่เก็บรักษาในห้องนิรภัยลอนดอน",
26
+ "oracle": "NYSEARCA: GLD"
27
+ },
28
+ "km:googl": {
29
+ "description_short": "Alphabet, Inc คลาส A",
30
+ "description_medium": "Alphabet, Inc (คลาส A) เป็นบริษัทโฮลดิ้งที่ดำเนินธุรกิจด้านซอฟต์แวร์ การดูแลสุขภาพ การขนส่ง และเทคโนโลยีอื่นๆ",
31
+ "oracle": "NASDAQ: GOOGL"
32
+ },
33
+ "km:jpn225": {
34
+ "description_short": "ติดตามหุ้นบลูชิปชั้นนำ 225 ตัวของญี่ปุ่น",
35
+ "description_medium": "ติดตามหุ้นบลูชิปชั้นนำ 225 ตัวของญี่ปุ่นในตลาดหลักทรัพย์โตเกียว",
36
+ "oracle": "INDEXNIKKEI: NI225"
37
+ },
38
+ "km:mu": {
39
+ "description_short": "Micron Technology, Inc.",
40
+ "description_medium": "Micron Technology, Inc. ดำเนินธุรกิจด้านการจัดหาโซลูชันหน่วยความจำและการจัดเก็บข้อมูลที่เป็นนวัตกรรม",
41
+ "oracle": "NASDAQ: MU"
42
+ },
43
+ "km:nvda": {
44
+ "description_short": "NVIDIA Corporation",
45
+ "description_medium": "NVIDIA Corporation ดำเนินธุรกิจด้านการออกแบบและผลิตหน่วยประมวลผลกราฟิก ชิปเซ็ต และซอฟต์แวร์มัลติมีเดียที่เกี่ยวข้อง",
46
+ "oracle": "NASDAQ: NVDA"
47
+ },
48
+ "km:pltr": {
49
+ "description_short": "Palantir Technologies, Inc.",
50
+ "description_medium": "Palantir Technologies, Inc. ดำเนินธุรกิจด้านการสร้างและใช้งานแพลตฟอร์มซอฟต์แวร์ที่ทำหน้าที่เป็นระบบปฏิบัติการหลักสำหรับลูกค้า",
51
+ "oracle": "NASDAQ: PLTR"
52
+ },
53
+ "km:rtx": {
54
+ "description_short": "RTX Corporation",
55
+ "description_medium": "RTX Corporation เป็นบริษัทด้านอวกาศและการป้องกันประเทศ ให้บริการระบบและบริการด้านอวกาศและการป้องกันประเทศแก่ลูกค้าเชิงพาณิชย์ ทหาร และรัฐบาล",
56
+ "oracle": "NYSE: RTX"
57
+ },
58
+ "km:semi": {
59
+ "description_short": "ติดตามบริษัทเซมิคอนดักเตอร์ 30 แห่งที่จดทะเบียนในสหรัฐฯ",
60
+ "description_medium": "ติดตามดัชนีถ่วงน้ำหนักตามมูลค่าตลาดแบบปรับปรุงของบริษัทเซมิคอนดักเตอร์ 30 แห่งที่จดทะเบียนในสหรัฐฯ",
61
+ "oracle": "NASDAQ: SOXX"
62
+ },
63
+ "km:silver": {
64
+ "description_short": "ติดตามราคาเงินจุดส่งมอบทันที",
65
+ "description_medium": "ติดตามราคาเงินจุดส่งมอบทันที หักค่าใช้จ่ายและหนี้สิน โดยใช้เงินแท่งที่เก็บรักษาในลอนดอน",
66
+ "oracle": "NYSEARCA: SLV"
67
+ },
68
+ "km:small2000": {
69
+ "description_short": "ติดตามหุ้นขนาดเล็ก 2,000 ตัวของสหรัฐฯ",
70
+ "description_medium": "ติดตามดัชนีถ่วงน้ำหนักตามมูลค่าตลาดของหุ้นขนาดเล็กของสหรัฐฯ ดัชนีคัดเลือกหุ้นที่มีมูลค่าตลาดอันดับ 1,001-3,000",
71
+ "oracle": "NYSEARCA: IWM"
72
+ },
73
+ "km:tencent": {
74
+ "description_short": "Tencent Holdings Ltd.",
75
+ "description_medium": "Tencent Holdings Ltd. เป็นบริษัทเทคโนโลยีข้ามชาติชั้นนำและเป็นผู้จัดจำหน่ายวิดีโอเกมรายใหญ่ที่สุดในโลก ดำเนินระบบนิเวศขนาดใหญ่ ประกอบด้วย \"ซูเปอร์แอป\" WeChat (ผู้ใช้มากกว่า 1.3 พันล้านคน) ฟินเทค บริการคลาวด์ และโฆษณาออนไลน์",
76
+ "oracle": "HKG: 0700"
77
+ },
78
+ "km:tsla": {
79
+ "description_short": "Tesla, Inc.",
80
+ "description_medium": "Tesla, Inc. ดำเนินธุรกิจด้านการออกแบบ พัฒนา ผลิต และจำหน่ายยานยนต์ไฟฟ้า รวมถึงระบบผลิตและกักเก็บพลังงาน",
81
+ "oracle": "NASDAQ: TSLA"
82
+ },
83
+ "km:us500": {
84
+ "description_short": "ติดตามหุ้นขนาดใหญ่ชั้นนำ 500 ตัวของสหรัฐฯ",
85
+ "description_medium": "ติดตามดัชนีถ่วงน้ำหนักตามมูลค่าตลาดของหุ้นขนาดใหญ่และขนาดกลาง 500 ตัวที่ใหญ่ที่สุดของสหรัฐฯ",
86
+ "oracle": "NYSEARCA: SPY"
87
+ },
88
+ "km:usbond": {
89
+ "description_short": "ติดตามพันธบัตรรัฐบาลสหรัฐฯ ระยะยาว",
90
+ "description_medium": "ติดตามดัชนีถ่วงน้ำหนักตามตลาดของตราสารหนี้ที่ออกโดยกระทรวงการคลังสหรัฐฯ ที่มีอายุคงเหลือ 20 ปีขึ้นไป",
91
+ "oracle": "NASDAQ: TLT"
92
+ },
93
+ "km:usenergy": {
94
+ "description_short": "ติดตามหุ้นบริษัทพลังงานของสหรัฐฯ",
95
+ "description_medium": "ติดตามดัชนีถ่วงน้ำหนักตามมูลค่าตลาดของบริษัทพลังงานสหรัฐฯ ใน S&P 500",
96
+ "oracle": "NYSEARCA: XLE"
97
+ },
98
+ "km:usoil": {
99
+ "description_short": "ติดตามสัญญาซื้อขายน้ำมันดิบล่วงหน้าระยะสั้น",
100
+ "description_medium": "ติดตามสัญญาซื้อขายล่วงหน้าระยะสั้นของน้ำมันดิบ WTI เป็นหลัก",
101
+ "oracle": "NYSEARCA: USO"
102
+ },
103
+ "km:ustech": {
104
+ "description_short": "ติดตามหุ้นชั้นนำ 100 ตัวของ NASDAQ",
105
+ "description_medium": "ติดตามดัชนีถ่วงน้ำหนักตามมูลค่าตลาดแบบปรับปรุงของหุ้น 100 ตัวที่จดทะเบียนใน NASDAQ",
106
+ "oracle": "NASDAQ: QQQ"
107
+ },
108
+ "km:xiaomi": {
109
+ "description_short": "Xiaomi Corporation",
110
+ "description_medium": "Xiaomi Corporation ดำเนินธุรกิจด้านการออกแบบ ผลิต และจำหน่ายสมาร์ทโฟน ผลิตภัณฑ์ฮาร์ดแวร์และซอฟต์แวร์",
111
+ "oracle": "HKG: 1810"
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,114 @@
1
+ {
2
+ "asset-metadata": {
3
+ "km:aapl": {
4
+ "description_short": "Apple, Inc.",
5
+ "description_medium": "Apple, Inc. 從事智慧型手機、個人電腦、平板電腦、穿戴式裝置及配件的設計、製造和銷售,以及各類相關服務。",
6
+ "oracle": "NASDAQ: AAPL"
7
+ },
8
+ "km:baba": {
9
+ "description_short": "阿里巴巴集團控股有限公司",
10
+ "description_medium": "阿里巴巴集團控股有限公司是一家中國跨國科技集團,業務涵蓋電子商務、雲端運算、數位媒體和金融服務。",
11
+ "oracle": "NYSE: BABA"
12
+ },
13
+ "km:bmnr": {
14
+ "description_short": "Bitmine Immersion Technologies, Inc",
15
+ "description_medium": "Bitmine Immersion Technologies, Inc. 是一家科技公司,專注於將ETH作為主要儲備資產進行收購、持有和積極管理。",
16
+ "oracle": "NYSEAMERICAN: BMNR"
17
+ },
18
+ "km:gldmine": {
19
+ "description_short": "追蹤金銀礦業公司",
20
+ "description_medium": "追蹤與金銀礦業活動相關的全球公司市值加權指數。",
21
+ "oracle": "NYSEARCA: GDX"
22
+ },
23
+ "km:gold": {
24
+ "description_short": "追蹤黃金現貨價格",
25
+ "description_medium": "追蹤黃金現貨價格,扣除費用和負債,使用存放在倫敦金庫中的金條。",
26
+ "oracle": "NYSEARCA: GLD"
27
+ },
28
+ "km:googl": {
29
+ "description_short": "Alphabet, Inc A類",
30
+ "description_medium": "Alphabet, Inc(A類)是一家控股公司,從事軟體、醫療保健、交通運輸及其他技術領域的業務。",
31
+ "oracle": "NASDAQ: GOOGL"
32
+ },
33
+ "km:jpn225": {
34
+ "description_short": "追蹤日本225檔藍籌股",
35
+ "description_medium": "追蹤東京證券交易所日本225檔頂級藍籌股。",
36
+ "oracle": "INDEXNIKKEI: NI225"
37
+ },
38
+ "km:mu": {
39
+ "description_short": "Micron Technology, Inc.",
40
+ "description_medium": "Micron Technology, Inc. 從事創新記憶體和儲存解決方案的提供。",
41
+ "oracle": "NASDAQ: MU"
42
+ },
43
+ "km:nvda": {
44
+ "description_short": "NVIDIA Corporation",
45
+ "description_medium": "NVIDIA Corporation 從事電腦圖形處理器、晶片組及相關多媒體軟體的設計和製造。",
46
+ "oracle": "NASDAQ: NVDA"
47
+ },
48
+ "km:pltr": {
49
+ "description_short": "Palantir Technologies, Inc.",
50
+ "description_medium": "Palantir Technologies, Inc. 從事構建和部署軟體平台,作為客戶的核心作業系統。",
51
+ "oracle": "NASDAQ: PLTR"
52
+ },
53
+ "km:rtx": {
54
+ "description_short": "RTX Corporation",
55
+ "description_medium": "RTX Corporation 是一家航空太空和國防公司,為商業、軍事和政府客戶提供航空太空和國防系統及服務。",
56
+ "oracle": "NYSE: RTX"
57
+ },
58
+ "km:semi": {
59
+ "description_short": "追蹤30家美國上市半導體公司",
60
+ "description_medium": "追蹤30家美國上市半導體公司的修正市值加權指數。",
61
+ "oracle": "NASDAQ: SOXX"
62
+ },
63
+ "km:silver": {
64
+ "description_short": "追蹤白銀現貨價格",
65
+ "description_medium": "追蹤白銀現貨價格,扣除費用和負債,使用存放在倫敦的銀條。",
66
+ "oracle": "NYSEARCA: SLV"
67
+ },
68
+ "km:small2000": {
69
+ "description_short": "追蹤2000檔美國小型股",
70
+ "description_medium": "追蹤美國小型股市值加權指數。該指數選取市值排名第1,001至3,000位的股票。",
71
+ "oracle": "NYSEARCA: IWM"
72
+ },
73
+ "km:tencent": {
74
+ "description_short": "騰訊控股有限公司",
75
+ "description_medium": "騰訊控股有限公司是一家領先的跨國科技集團,也是全球最大的電子遊戲發行商。它營運著龐大的生態系統,包括微信「超級應用」(超過13億用戶)、金融科技、雲端服務和線上廣告。",
76
+ "oracle": "HKG: 0700"
77
+ },
78
+ "km:tsla": {
79
+ "description_short": "Tesla, Inc.",
80
+ "description_medium": "Tesla, Inc. 從事電動車以及能源生成和儲存系統的設計、開發、製造和銷售。",
81
+ "oracle": "NASDAQ: TSLA"
82
+ },
83
+ "km:us500": {
84
+ "description_short": "追蹤500檔美國領先大型股",
85
+ "description_medium": "追蹤美國500檔最大的大型和中型股市值加權指數。",
86
+ "oracle": "NYSEARCA: SPY"
87
+ },
88
+ "km:usbond": {
89
+ "description_short": "追蹤長期美國國債",
90
+ "description_medium": "追蹤美國財政部發行的剩餘期限在20年或以上的債券市值加權指數。",
91
+ "oracle": "NASDAQ: TLT"
92
+ },
93
+ "km:usenergy": {
94
+ "description_short": "追蹤美國能源公司股票",
95
+ "description_medium": "追蹤標普500中美國能源公司的市值加權指數。",
96
+ "oracle": "NYSEARCA: XLE"
97
+ },
98
+ "km:usoil": {
99
+ "description_short": "追蹤原油短期期貨",
100
+ "description_medium": "主要追蹤WTI原油的短期期貨合約。",
101
+ "oracle": "NYSEARCA: USO"
102
+ },
103
+ "km:ustech": {
104
+ "description_short": "追蹤100檔那斯達克領先股票",
105
+ "description_medium": "追蹤100檔那斯達克上市股票的修正市值加權指數。",
106
+ "oracle": "NASDAQ: QQQ"
107
+ },
108
+ "km:xiaomi": {
109
+ "description_short": "小米集團",
110
+ "description_medium": "小米集團從事智慧型手機、硬體和軟體產品的設計、製造和銷售。",
111
+ "oracle": "HKG: 1810"
112
+ }
113
+ }
114
+ }
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@kinetiq-research/asset-metadata",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "Asset metadata (descriptions, oracle references) for Kinetiq markets",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "exports": {
8
- "./get-asset-metadata": "./src/get-asset-metadata.ts"
8
+ "./get-asset-metadata": "./src/get-asset-metadata.ts",
9
+ "./get-asset-metadata-with-locale": "./src/get-asset-metadata-with-locale.ts"
9
10
  },
10
11
  "scripts": {
11
12
  "lint": "run-p lint:*",
@@ -0,0 +1,73 @@
1
+ export const assetMetadata: Record<
2
+ string,
3
+ {
4
+ oracleUrl: string
5
+ }
6
+ > = {
7
+ 'km:aapl': {
8
+ oracleUrl: 'https://www.google.com/finance/quote/AAPL:NASDAQ',
9
+ },
10
+ 'km:baba': {
11
+ oracleUrl: 'https://www.google.com/finance/quote/BABA:NYSE',
12
+ },
13
+ 'km:bmnr': {
14
+ oracleUrl: 'https://www.google.com/finance/quote/BMNR:NYSEAMERICAN',
15
+ },
16
+ 'km:gldmine': {
17
+ oracleUrl: 'https://www.google.com/finance/quote/GDX:NYSEARCA',
18
+ },
19
+ 'km:gold': {
20
+ oracleUrl: 'https://www.google.com/finance/quote/GLD:NYSEARCA',
21
+ },
22
+ 'km:googl': {
23
+ oracleUrl: 'https://www.google.com/finance/quote/GOOGL:NASDAQ',
24
+ },
25
+ 'km:jpn225': {
26
+ oracleUrl: 'https://www.google.com/finance/quote/NI225:INDEXNIKKEI',
27
+ },
28
+ 'km:mu': {
29
+ oracleUrl: 'https://www.google.com/finance/quote/MU:NASDAQ',
30
+ },
31
+ 'km:nvda': {
32
+ oracleUrl: 'https://www.google.com/finance/quote/NVDA:NASDAQ',
33
+ },
34
+ 'km:pltr': {
35
+ oracleUrl: 'https://www.google.com/finance/quote/PLTR:NASDAQ',
36
+ },
37
+ 'km:rtx': {
38
+ oracleUrl: 'https://www.google.com/finance/quote/RTX:NYSE',
39
+ },
40
+ 'km:semi': {
41
+ oracleUrl: 'https://www.google.com/finance/quote/SOXX:NASDAQ',
42
+ },
43
+ 'km:silver': {
44
+ oracleUrl: 'https://www.google.com/finance/quote/SLV:NYSEARCA',
45
+ },
46
+ 'km:small2000': {
47
+ oracleUrl: 'https://www.google.com/finance/quote/IWM:NYSEARCA',
48
+ },
49
+ 'km:tencent': {
50
+ oracleUrl: 'https://www.google.com/finance/quote/0700:HKG',
51
+ },
52
+ 'km:tsla': {
53
+ oracleUrl: 'https://www.google.com/finance/quote/TSLA:NASDAQ',
54
+ },
55
+ 'km:us500': {
56
+ oracleUrl: 'https://www.google.com/finance/quote/SPY:NYSEARCA',
57
+ },
58
+ 'km:usbond': {
59
+ oracleUrl: 'https://www.google.com/finance/quote/TLT:NASDAQ',
60
+ },
61
+ 'km:usenergy': {
62
+ oracleUrl: 'https://www.google.com/finance/quote/XLE:NYSEARCA',
63
+ },
64
+ 'km:usoil': {
65
+ oracleUrl: 'https://www.google.com/finance/quote/USO:NYSEARCA',
66
+ },
67
+ 'km:ustech': {
68
+ oracleUrl: 'https://www.google.com/finance/quote/QQQ:NASDAQ',
69
+ },
70
+ 'km:xiaomi': {
71
+ oracleUrl: 'https://www.google.com/finance/quote/1810:HKG',
72
+ },
73
+ }
package/src/_/types.ts ADDED
@@ -0,0 +1,9 @@
1
+ export interface AssetMessage {
2
+ description_medium: string
3
+ description_short: string
4
+ oracle: string
5
+ }
6
+
7
+ export type LocaleMessages = {
8
+ 'asset-metadata': Record<string, AssetMessage>
9
+ }
@@ -0,0 +1,58 @@
1
+ import cn from '../messages/cn.json'
2
+ import en from '../messages/en.json'
3
+ import es from '../messages/es.json'
4
+ import fr from '../messages/fr.json'
5
+ import id from '../messages/id.json'
6
+ import ja from '../messages/ja.json'
7
+ import ko from '../messages/ko.json'
8
+ import ms from '../messages/ms.json'
9
+ import ptBr from '../messages/pt_br.json'
10
+ import ru from '../messages/ru.json'
11
+ import th from '../messages/th.json'
12
+ import zh from '../messages/zh.json'
13
+ import type { LocaleMessages } from './_/types'
14
+ import { getAssetMetadata } from './get-asset-metadata'
15
+
16
+ export interface AssetMetadataWithLocale {
17
+ descriptionMedium: string | undefined
18
+ descriptionShort: string | undefined
19
+ oracleName: string | undefined
20
+ oracleUrl: string | undefined
21
+ }
22
+
23
+ const localeMessagesMap: Record<string, LocaleMessages> = {
24
+ cn: cn as LocaleMessages,
25
+ en: en as LocaleMessages,
26
+ es: es as LocaleMessages,
27
+ fr: fr as LocaleMessages,
28
+ id: id as LocaleMessages,
29
+ ja: ja as LocaleMessages,
30
+ ko: ko as LocaleMessages,
31
+ ms: ms as LocaleMessages,
32
+ pt_br: ptBr as LocaleMessages,
33
+ ru: ru as LocaleMessages,
34
+ th: th as LocaleMessages,
35
+ zh: zh as LocaleMessages,
36
+ }
37
+
38
+ export const getAssetMetadataWithLocale = ({
39
+ locale,
40
+ symbol,
41
+ }: {
42
+ locale: string
43
+ symbol: string
44
+ }): AssetMetadataWithLocale => {
45
+ const symbolClean = symbol.toLowerCase()
46
+
47
+ const metadata = getAssetMetadata({ symbol })
48
+
49
+ const messages = localeMessagesMap[locale] ?? {}
50
+ const localized = messages['asset-metadata'][symbolClean]
51
+
52
+ return {
53
+ descriptionMedium: localized?.description_medium,
54
+ descriptionShort: localized?.description_short,
55
+ oracleName: localized?.oracle,
56
+ oracleUrl: metadata.oracleUrl,
57
+ }
58
+ }
@@ -1,16 +1,10 @@
1
- import { assetMetadata } from './asset-metadata'
1
+ import { assetMetadata } from './_/asset-metadata'
2
2
 
3
3
  export interface AssetMetadata {
4
- description: string | undefined
5
- descriptionShort: string | undefined
6
- oracleName: string | undefined
7
4
  oracleUrl: string | undefined
8
5
  }
9
6
 
10
7
  const EMPTY_METADATA: AssetMetadata = {
11
- description: undefined,
12
- descriptionShort: undefined,
13
- oracleName: undefined,
14
8
  oracleUrl: undefined,
15
9
  }
16
10
 
@@ -18,4 +12,14 @@ export const getAssetMetadata = ({
18
12
  symbol,
19
13
  }: {
20
14
  symbol: string
21
- }): AssetMetadata => assetMetadata[symbol.toLowerCase()] ?? EMPTY_METADATA
15
+ }): AssetMetadata => {
16
+ const symbolClean = symbol.toLowerCase()
17
+
18
+ if (!(symbolClean in assetMetadata)) {
19
+ return EMPTY_METADATA
20
+ }
21
+
22
+ return {
23
+ oracleUrl: assetMetadata[symbolClean].oracleUrl,
24
+ }
25
+ }
package/tsconfig.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "compilerOptions": {
3
+ "allowArbitraryExtensions": true,
3
4
  "outDir": "./dist",
4
5
  "rootDir": "./"
5
6
  },
6
7
  "exclude": ["dist", "node_modules"],
7
8
  "extends": "@kinetiq-research/tsconfig/base.json",
8
- "include": ["."]
9
+ "include": [".", "messages/*.json"]
9
10
  }
@@ -1,164 +0,0 @@
1
- export const assetMetadata: Record<
2
- string,
3
- {
4
- description: string
5
- descriptionShort: string
6
- oracleName: string
7
- oracleUrl: string
8
- }
9
- > = {
10
- 'km:aapl': {
11
- description:
12
- 'Apple, Inc. engages in the design, manufacture, and sale of smartphones, personal computers, tablets, wearables and accessories, and other varieties of related services.',
13
- descriptionShort: 'Apple, Inc.',
14
- oracleName: 'NASDAQ: AAPL',
15
- oracleUrl: 'https://www.google.com/finance/quote/AAPL:NASDAQ',
16
- },
17
- 'km:baba': {
18
- description:
19
- 'Alibaba Group Holding Ltd. is a Chinese multinational technology conglomerate operating across e-commerce, cloud computing, digital media, and financial services.',
20
- descriptionShort: 'Alibaba Group Holding Ltd.',
21
- oracleName: 'NYSE: BABA',
22
- oracleUrl: 'https://www.google.com/finance/quote/BABA:NYSE',
23
- },
24
- 'km:bmnr': {
25
- description:
26
- 'Bitmine Immersion Technologies, Inc. is a technology company focused on acquiring, holding, and actively managing ETH as its primary treasury reserve asset.',
27
- descriptionShort: 'Bitmine Immersion Technologies, Inc',
28
- oracleName: 'NYSEAMERICAN: BMNR',
29
- oracleUrl: 'https://www.google.com/finance/quote/BMNR:NYSEAMERICAN',
30
- },
31
- 'km:gldmine': {
32
- description:
33
- 'Tracks a market-cap-weighted index of global companies tied to gold and silver mining activities.',
34
- descriptionShort: 'Tracks gold and silver mining companies',
35
- oracleName: 'NYSEARCA: GDX',
36
- oracleUrl: 'https://www.google.com/finance/quote/GDX:NYSEARCA',
37
- },
38
- 'km:gold': {
39
- description:
40
- 'Tracks the gold spot price, less expenses and liabilities, using gold bars held in London vaults.',
41
- descriptionShort: 'Tracks gold spot price',
42
- oracleName: 'NYSEARCA: GLD',
43
- oracleUrl: 'https://www.google.com/finance/quote/GLD:NYSEARCA',
44
- },
45
- 'km:googl': {
46
- description:
47
- 'Alphabet, Inc (Class A). is a holding company, which engages in software, health care, transportation, and other technologies.',
48
- descriptionShort: 'Alphabet, Inc Class A',
49
- oracleName: 'NASDAQ: GOOGL',
50
- oracleUrl: 'https://www.google.com/finance/quote/GOOGL:NASDAQ',
51
- },
52
- 'km:jpn225': {
53
- description:
54
- "Tracks Japan's top 225 blue-chip stocks on the Tokyo Stock Exchange.",
55
- descriptionShort: "Tracks Japan's top 225 blue-chip stocks",
56
- oracleName: 'INDEXNIKKEI: NI225',
57
- oracleUrl: 'https://www.google.com/finance/quote/NI225:INDEXNIKKEI',
58
- },
59
- 'km:mu': {
60
- description:
61
- 'Micron Technology, Inc. engages in the provision of innovative memory and storage solutions.',
62
- descriptionShort: 'Micron Technology, Inc.',
63
- oracleName: 'NASDAQ: MU',
64
- oracleUrl: 'https://www.google.com/finance/quote/MU:NASDAQ',
65
- },
66
- 'km:nvda': {
67
- description:
68
- 'NVIDIA Corporation engages in the design and manufacture of computer graphics processors, chipsets, and related multimedia software.',
69
- descriptionShort: 'NVIDIA Corporation',
70
- oracleName: 'NASDAQ: NVDA',
71
- oracleUrl: 'https://www.google.com/finance/quote/NVDA:NASDAQ',
72
- },
73
- 'km:pltr': {
74
- description:
75
- 'Palantir Technologies, Inc. engages in the business of building and deploying software platforms that serve as the central operating systems for its customers.',
76
- descriptionShort: 'Palantir Technologies, Inc.',
77
- oracleName: 'NASDAQ: PLTR',
78
- oracleUrl: 'https://www.google.com/finance/quote/PLTR:NASDAQ',
79
- },
80
- 'km:rtx': {
81
- description:
82
- 'RTX Corporation is an aerospace and defense company, which engages in the provision of aerospace and defense systems and services for commercial, military, and government customers.',
83
- descriptionShort: 'RTX Corporation',
84
- oracleName: 'NYSE: RTX',
85
- oracleUrl: 'https://www.google.com/finance/quote/RTX:NYSE',
86
- },
87
- 'km:semi': {
88
- description:
89
- 'Tracks a modified market-cap-weighted index of 30 US-listed semiconductor companies.',
90
- descriptionShort: 'Tracks 30 US-listed semiconductor companies',
91
- oracleName: 'NASDAQ: SOXX',
92
- oracleUrl: 'https://www.google.com/finance/quote/SOXX:NASDAQ',
93
- },
94
- 'km:silver': {
95
- description:
96
- 'Tracks the silver spot price, less expenses and liabilities, using silver bullion held in London.',
97
- descriptionShort: 'Tracks silver spot price',
98
- oracleName: 'NYSEARCA: SLV',
99
- oracleUrl: 'https://www.google.com/finance/quote/SLV:NYSEARCA',
100
- },
101
- 'km:small2000': {
102
- description:
103
- 'Tracks a market-cap-weighted index of US small-cap stocks. The index selects stocks ranked 1,001-3,000 by market cap.',
104
- descriptionShort: 'Tracks 2000 US small-cap stocks',
105
- oracleName: 'NYSEARCA: IWM',
106
- oracleUrl: 'https://www.google.com/finance/quote/IWM:NYSEARCA',
107
- },
108
- 'km:tencent': {
109
- description:
110
- 'Tencent Holdings Ltd. is a leading multinational technology conglomerate and the world\'s largest video game publisher. It operates a vast ecosystem, including the WeChat "super-app" (1.3 billion+ users), FinTech, cloud services, and online advertising.',
111
- descriptionShort: 'Tencent Holdings Ltd.',
112
- oracleName: 'HKG: 0700',
113
- oracleUrl: 'https://www.google.com/finance/quote/0700:HKG',
114
- },
115
- 'km:tsla': {
116
- description:
117
- 'Tesla, Inc. engages in the design, development, manufacture, and sale of electric vehicles and energy generation and storage systems.',
118
- descriptionShort: 'Tesla, Inc.',
119
- oracleName: 'NASDAQ: TSLA',
120
- oracleUrl: 'https://www.google.com/finance/quote/TSLA:NASDAQ',
121
- },
122
- 'km:us500': {
123
- description:
124
- 'Tracks a market cap-weighted index of the 500 largest US large- and mid-cap stocks.',
125
- descriptionShort: 'Tracks 500 leading US large-cap stocks',
126
- oracleName: 'NYSEARCA: SPY',
127
- oracleUrl: 'https://www.google.com/finance/quote/SPY:NYSEARCA',
128
- },
129
- 'km:usbond': {
130
- description:
131
- 'Tracks a market-weighted index of debt issued by the US Treasury with remaining maturities of 20 years or more.',
132
- descriptionShort: 'Tracks long-duration US Treasury bonds',
133
- oracleName: 'NASDAQ: TLT',
134
- oracleUrl: 'https://www.google.com/finance/quote/TLT:NASDAQ',
135
- },
136
- 'km:usenergy': {
137
- description:
138
- 'Tracks a market-cap-weighted index of US energy companies in the S&P 500.',
139
- descriptionShort: 'Tracks US energy company stocks',
140
- oracleName: 'NYSEARCA: XLE',
141
- oracleUrl: 'https://www.google.com/finance/quote/XLE:NYSEARCA',
142
- },
143
- 'km:usoil': {
144
- description:
145
- 'Tracks predominantly short-term futures contracts on WTI crude oil.',
146
- descriptionShort: 'Tracks crude oil short-term futures',
147
- oracleName: 'NYSEARCA: USO',
148
- oracleUrl: 'https://www.google.com/finance/quote/USO:NYSEARCA',
149
- },
150
- 'km:ustech': {
151
- description:
152
- 'Tracks a modified-market-cap-weighted index of 100 NASDAQ-listed stocks.',
153
- descriptionShort: 'Tracks 100 leading NASDAQ stocks',
154
- oracleName: 'NASDAQ: QQQ',
155
- oracleUrl: 'https://www.google.com/finance/quote/QQQ:NASDAQ',
156
- },
157
- 'km:xiaomi': {
158
- description:
159
- 'Xiaomi Corporation engages in the design, manufacture and sale of smartphone, hardware and software products.',
160
- descriptionShort: 'Xiaomi Corporation',
161
- oracleName: 'HKG: 1810',
162
- oracleUrl: 'https://www.google.com/finance/quote/1810:HKG',
163
- },
164
- }