-
Notifications
You must be signed in to change notification settings - Fork 10
/
config.js.example
70 lines (61 loc) · 2.54 KB
/
config.js.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/**
* telegram bot
*/
export const botToken = 'TELEGRAM_BOT_TOKEN'
/**
* stock chart
*/
export const chartUrl = 'https://tw.stock.yahoo.com/q/bc?s=STOCK_ID'
export const chartLocator =
'iframe[src^="https://s.yimg.com/nb/tw_stock_frontend/scripts/StxChart"]'
/**
* index chart
*/
export const tseChartUrl = 'https://tw.stock.yahoo.com/s/tse.php'
export const tseCahrtLocator =
'iframe[src^="https://s.yimg.com/nb/tw_stock_frontend/scripts/TseChart"]'
export const otcChartUrl = 'https://tw.stock.yahoo.com/s/otc.php'
export const otcChartLocator =
'iframe[src^="https://s.yimg.com/nb/tw_stock_frontend/scripts/TseChart"]'
/**
* stock/index raw data
*/
export const stockRawUrl =
'https://tw.quote.finance.yahoo.net/quote/q?type=tick&perd=1m&sym=STOCK_ID&callback='
/**
* stock/index candlestick
*/
export const stockCandlestickUrl = 'https://tw.stock.yahoo.com/q/ta?s=STOCK_ID'
export const tseCandlestickUrl = 'https://tw.stock.yahoo.com/t/idx.php'
export const otcCandlestickUrl = 'https://tw.stock.yahoo.com/t/otc.php'
export const candlestickLocator =
'iframe[src^="https://s.yimg.com/nb/tw_stock_frontend/scripts/TaChart"]'
/**
* stock after hours data
*/
export const stockAfterHoursUrl =
'https://tw.screener.finance.yahoo.net/screener/screen02.html?symid=STOCK_ID'
export const stockAfterHoursLocator =
'body >table > tbody > tr > td > table:nth-child(7)'
/**
* Investment truse start buying
*/
export const investmentTrustStartBuyingUrl =
'https://goodinfo.tw/StockInfo/StockList.asp?RPT_TIME=&MARKET_CAT=%E6%99%BA%E6%85%A7%E9%81%B8%E8%82%A1&INDUSTRY_CAT=%E6%8A%95%E4%BF%A1%E9%80%A3%E7%BA%8C%E7%84%A1%E8%B2%B7%E8%B3%A3%E8%B6%85%E8%BD%89%E8%B2%B7%E9%80%B2+%E2%80%93+%E6%97%A5%40%40%E6%8A%95%E4%BF%A1%E9%80%A3%E8%B2%B7%E9%80%A3%E8%B3%A3%E8%BD%89%E6%8A%98%40%40%E6%8A%95%E4%BF%A1%E9%80%A3%E7%BA%8C%E7%84%A1%E8%B2%B7%E8%B3%A3%E8%B6%85%E8%BD%89%E8%B2%B7%E9%80%B2+%E2%80%93+%E6%97%A5'
export const investmentTrustStartBuyingTableLocator = '#tblStockList'
/**
* Institutional investors daily buy rank
*/
export const investmentTrustDailyBuyUrl =
'https://www.twse.com.tw/zh/page/trading/fund/TWT44U.html'
export const investmentTrustDailyBuyDateLocator = '#reports .title h1'
export const investmentTrustDailyBuyTableLocator = '#report-table'
export const foreignInvestorDailyBuyUrl =
'https://www.twse.com.tw/zh/page/trading/fund/TWT38U.html'
export const foreignInvestorDailyBuyDateLocator = '#reports .title h1'
export const foreignInvestorDailyBuyTableLocator = '#report-table'
/**
* misc
*/
export const tseId = '%23001'
export const otcId = '%23026'