@dshtrading/client-ui-trading 0.1.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/LICENSE +75 -0
- package/README.md +55 -0
- package/lib/bridge.js +794 -0
- package/lib/client/contract.d.ts +11 -0
- package/lib/client/locales.d.ts +6 -0
- package/lib/client/locales.js +943 -0
- package/lib/client.js +20671 -0
- package/lib/client.js.map +1 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +141 -0
- package/lib/sse.js +30 -0
- package/package.json +84 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/client/contract.d.ts
|
|
2
|
+
/** Locale keys of the dshtrading.market namespace. */
|
|
3
|
+
type MarketLocaleKey = 'tab.watch' | 'tab.crypto' | 'tab.us' | 'tab.cn' | 'tab.hk' | 'sidebar.addPlaceholder' | 'sidebar.add' | 'sidebar.addMarketHint' | 'sidebar.empty' | 'sidebar.emptyHint' | 'sidebar.loadFailed' | 'sidebar.retry' | 'sidebar.markets' | 'sidebar.fold' | 'sidebar.expand' | 'header.symbol' | 'header.trend' | 'header.priceChange' | 'row.remove' | 'row.select' | 'quote.empty' | 'quote.emptyHint' | 'quote.open' | 'quote.high' | 'quote.low' | 'quote.prevClose' | 'quote.volume' | 'quote.updated' | 'quote.loadFailed' | 'quote.loadFailedColon' | 'quote.noData' | 'quote.sendToAgent' | 'quote.sendToAgentHint' | 'quote.sendSending' | 'quote.sendSent' | 'quote.sendFailed' | 'quote.tab.chart' | 'quote.tab.fundamentals' | 'quote.tab.derivatives' | 'quote.tab.news' | 'quote.tab.announcements' | 'fundamentals.peTtm' | 'fundamentals.peDynamic' | 'fundamentals.pb' | 'fundamentals.marketCap' | 'fundamentals.floatMarketCap' | 'fundamentals.turnoverRate' | 'fundamentals.dividendYield' | 'fundamentals.fiftyTwoWeekHigh' | 'fundamentals.fiftyTwoWeekLow' | 'fundamentals.unavailable' | 'fundamentals.source' | 'fundamentals.unit.cn' | 'fundamentals.unit.us' | 'fundamentals.unit.hk' | 'fundamentals.unit.crypto' | 'fundamentals.scale' | 'fund.page.empty' | 'fund.page.loading' | 'fund.pill.peTtm' | 'fund.pill.peDynamic' | 'fund.pill.pb' | 'fund.pill.marketCap' | 'fund.pill.dividendYield' | 'fund.pill.turnover' | 'fund.pill.floatCap' | 'fund.pill.rank' | 'fund.nav.financials' | 'fund.nav.key' | 'fund.nav.income' | 'fund.nav.balance' | 'fund.nav.cashflow' | 'fund.nav.forecast' | 'fund.nav.forecastItem' | 'fund.nav.reports' | 'fund.nav.reportsItem' | 'fund.nav.valuation' | 'fund.nav.valuationItem' | 'fund.nav.biz' | 'fund.nav.bizSegments' | 'fund.nav.bizEfficiency' | 'fund.nav.smartMoney' | 'fund.nav.shareholders' | 'fund.nav.insider' | 'fund.nav.institutional' | 'fund.nav.profile' | 'fund.nav.profileOverview' | 'fund.nav.profileExecutives' | 'fund.nav.actions' | 'fund.nav.dividends' | 'fund.nav.buybacks' | 'fund.nav.splits' | 'fund.chart.reportTitle' | 'fund.chart.showYoy' | 'fund.chart.yoyLegend' | 'fund.switch.on' | 'fund.switch.off' | 'fund.matrix.currency' | 'fund.matrix.clickHint' | 'fund.matrix.indicator' | 'fund.matrix.emptyTitle' | 'fund.matrix.emptyHint' | 'fund.forecast.title' | 'fund.forecast.subtitle' | 'fund.forecast.epsCurrent' | 'fund.forecast.epsNext' | 'fund.forecast.targetPrice' | 'fund.forecast.orgCount' | 'fund.forecast.col.year' | 'fund.forecast.col.eps' | 'fund.forecast.col.revenue' | 'fund.forecast.col.netProfit' | 'fund.forecast.col.orgs' | 'fund.forecast.empty' | 'fund.reports.title' | 'fund.reports.subtitle' | 'fund.reports.analyst' | 'fund.reports.empty' | 'fund.valuation.title' | 'fund.valuation.subtitle' | 'fund.valuation.range52w' | 'fund.valuation.low52w' | 'fund.valuation.high52w' | 'fund.valuation.peNote' | 'fund.valuation.undervalued' | 'fund.valuation.fair' | 'fund.valuation.overvalued' | 'fund.valuation.assessing' | 'fund.valuation.peTtm' | 'fund.valuation.peDynamic' | 'fund.valuation.peStatic' | 'fund.valuation.pb' | 'fund.valuation.marketCap' | 'fund.valuation.floatCap' | 'fund.valuation.dividendYield' | 'fund.valuation.turnover' | 'fund.segments.title' | 'fund.segments.subtitle' | 'fund.segments.all' | 'fund.segments.byProduct' | 'fund.segments.byIndustry' | 'fund.segments.byRegion' | 'fund.segments.col.segment' | 'fund.segments.col.revenue' | 'fund.segments.col.revenueRatio' | 'fund.segments.col.profit' | 'fund.segments.col.grossMargin' | 'fund.segments.empty' | 'fund.efficiency.title' | 'fund.efficiency.subtitle' | 'fund.efficiency.inventoryDays' | 'fund.efficiency.receivableDays' | 'fund.efficiency.operatingCycle' | 'fund.efficiency.assetTurnover' | 'fund.efficiency.grossMargin' | 'fund.efficiency.netMargin' | 'fund.efficiency.currentRatio' | 'fund.efficiency.quickRatio' | 'fund.efficiency.summary' | 'fund.efficiency.empty' | 'fund.holders.title' | 'fund.holders.subtitle' | 'fund.holders.totalHolders' | 'fund.holders.avgShares' | 'fund.holders.avgValue' | 'fund.holders.concentration' | 'fund.holders.moderate' | 'fund.holders.col.rank' | 'fund.holders.col.name' | 'fund.holders.col.shares' | 'fund.holders.col.ratio' | 'fund.holders.col.change' | 'fund.holders.unchanged' | 'fund.holders.empty' | 'fund.insider.title' | 'fund.insider.subtitle' | 'fund.insider.col.holder' | 'fund.insider.col.type' | 'fund.insider.col.shares' | 'fund.insider.col.ratio' | 'fund.insider.col.date' | 'fund.insider.empty' | 'fund.institutional.title' | 'fund.institutional.subtitle' | 'fund.institutional.col.org' | 'fund.institutional.col.type' | 'fund.institutional.col.shares' | 'fund.institutional.col.ratio' | 'fund.institutional.col.value' | 'fund.institutional.col.change' | 'fund.institutional.empty' | 'fund.profile.title' | 'fund.profile.subtitle' | 'fund.profile.fullName' | 'fund.profile.nameEn' | 'fund.profile.industry' | 'fund.profile.registeredCapital' | 'fund.profile.employees' | 'fund.profile.address' | 'fund.profile.website' | 'fund.profile.description' | 'fund.profile.descriptionFallback' | 'fund.executives.title' | 'fund.executives.subtitle' | 'fund.executives.chairman' | 'fund.executives.generalManager' | 'fund.executives.legalRep' | 'fund.executives.boardSecretary' | 'fund.dividends.title' | 'fund.dividends.subtitle' | 'fund.dividends.col.year' | 'fund.dividends.col.plan' | 'fund.dividends.col.cash' | 'fund.dividends.col.exDate' | 'fund.dividends.col.recordDate' | 'fund.dividends.empty' | 'fund.buybacks.title' | 'fund.buybacks.subtitle' | 'fund.buybacks.col.date' | 'fund.buybacks.col.amount' | 'fund.buybacks.col.shares' | 'fund.buybacks.col.priceRange' | 'fund.buybacks.col.status' | 'fund.buybacks.empty' | 'fund.splits.title' | 'fund.splits.subtitle' | 'fund.splits.col.date' | 'fund.splits.col.ratio' | 'fund.splits.col.description' | 'fund.splits.empty' | 'fund.unit.orgs' | 'fund.unit.days' | 'fund.unit.times' | 'fund.unit.holders' | 'fund.unit.shares' | 'fund.unit.wanCny' | 'fund.unit.yiCny' | 'marker.signal.toggle' | 'marker.signal.toggleTitle' | 'marker.signal.entryReason' | 'marker.signal.exitReason' | 'marker.knowledge.toggle' | 'marker.knowledge.toggleTitle' | 'marker.knowledge.batched' | 'tooltip.signal.entry' | 'tooltip.signal.exit' | 'tooltip.label.price' | 'tooltip.label.time' | 'tooltip.label.return' | 'tooltip.label.profit' | 'tooltip.label.holding' | 'tooltip.unit.bars' | 'tooltip.knowledge.header' | 'tooltip.credibility.high' | 'tooltip.credibility.medium' | 'tooltip.credibility.low' | 'news.time.justNow' | 'news.time.minutesAgo' | 'news.time.hoursAgo' | 'news.time.daysAgo' | 'news.time.monthsAgo' | 'news.time.yearsAgo' | 'news.source.eastmoneyAnnouncement' | 'news.source.eastmoney' | 'news.source.hkexAnnouncement' | 'news.source.cninfoAnnouncement' | 'news.source.secEdgar' | 'news.source.binance' | 'news.source.okx' | 'news.source.yahoo' | 'news.source.google' | 'news.source.coindesk' | 'news.source.theblock' | 'news.source.cointelegraph' | 'news.source.decrypt' | 'news.empty.exchangeNotReady' | 'news.empty.mediaNotActive' | 'news.empty.noAnnouncements' | 'news.empty.noNews' | 'news.sendToAgentTitle' | 'news.degraded' | 'compose.opener' | 'compose.prevClose' | 'compose.priceLine' | 'compose.candleLine' | 'compose.indicatorsLine' | 'compose.listSeparator' | 'compose.deltaWrap' | 'compose.prevSep' | 'compose.withScreenshot' | 'compose.withoutScreenshot' | 'card.order.rejected' | 'card.order.dryRun' | 'card.order.live' | 'card.order.priceLabel' | 'card.order.quantityLabel' | 'card.order.refPriceLabel' | 'card.watchlist.selected' | 'card.watchlist.added' | 'card.watchlist.already' | 'derivatives.title' | 'derivatives.oi' | 'derivatives.oiValue' | 'derivatives.funding' | 'derivatives.fundingPositive' | 'derivatives.fundingNegative' | 'derivatives.longShort' | 'derivatives.topLongShort' | 'derivatives.taker' | 'derivatives.ratioLong' | 'derivatives.ratioShort' | 'derivatives.predicted' | 'derivatives.countdown' | 'derivatives.markPrice' | 'derivatives.indexPrice' | 'derivatives.basis' | 'derivatives.oiChange24h' | 'derivatives.fundingHistory' | 'derivatives.oiTrend' | 'derivatives.historyUnavailable' | 'derivatives.analyze' | 'derivatives.analyzeBody' | 'derivatives.analyzeHint' | 'derivatives.perpSource' | 'derivatives.hint.oi' | 'derivatives.hint.oiValue' | 'derivatives.hint.funding' | 'derivatives.hint.longShort' | 'derivatives.hint.topLongShort' | 'derivatives.hint.taker' | 'derivatives.hint.basis' | 'orderbook.title' | 'orderbook.close' | 'orderbook.unavailable' | 'orderbook.buyForce' | 'orderbook.sellForce' | 'orderbook.spread' | 'orderbook.trades' | 'orderbook.toggle' | 'trade.toggle' | 'trade.title' | 'trade.dryRunOnly' | 'trade.close' | 'trade.buy' | 'trade.sell' | 'trade.long' | 'trade.short' | 'trade.market' | 'trade.limit' | 'trade.price' | 'trade.quantity' | 'trade.submit' | 'trade.dryRunSubmit' | 'trade.submitting' | 'trade.submitFailed' | 'trade.orderSuccess' | 'trade.dryRunFilled' | 'trade.liveHint' | 'trade.drawer.collapse' | 'trade.drawer.expand' | 'trade.sideOrder' | 'trade.positions' | 'trade.openOrders' | 'trade.fills' | 'trade.balances' | 'trade.credentialHint' | 'trade.unavailable' | 'trade.empty' | 'trade.symbol' | 'trade.side' | 'trade.type' | 'trade.size' | 'trade.entryPrice' | 'trade.unrealizedPnl' | 'trade.filled' | 'trade.time' | 'trade.action' | 'trade.cancel' | 'trade.canceling' | 'trade.cancelSuccess' | 'trade.cancelFailed' | 'trade.liveChannel' | 'trade.fillCurrentPrice' | 'trade.marketExecuteHint' | 'trade.estimatedAmount' | 'trade.unit.shares' | 'trade.unit.coin' | 'trade.drawer.available' | 'trade.drawer.locked' | 'trade.drawer.total' | 'trade.drawer.asset' | 'trade.mode.live' | 'trade.mode.paper' | 'trade.paper.tag' | 'trade.paper.reset' | 'trade.paper.resetConfirm' | 'trade.paper.available' | 'trade.paper.buyAction' | 'trade.paper.sellAction' | 'trade.paper.drawerTag' | 'trade.paper.initialBalance' | 'trade.paper.totalPnl' | 'quote.rangeStats' | 'quote.rangeStatsHint' | 'range.change' | 'range.changeAbs' | 'range.high' | 'range.low' | 'range.amplitude' | 'range.volume' | 'range.bars' | 'range.upDays' | 'range.downDays' | 'range.closePanel' | 'stage.quote' | 'stage.strategy' | 'stage.knowledge' | 'indicator.picker' | 'indicator.group.main' | 'indicator.group.sub' | 'indicator.empty' | 'indicator.params' | 'indicator.apply' | 'indicator.cancel' | 'indicator.delete' | 'indicator.deleteConfirm' | 'interval.1m' | 'interval.3m' | 'interval.5m' | 'interval.10m' | 'interval.15m' | 'interval.30m' | 'interval.1h' | 'interval.4h' | 'interval.1d' | 'interval.1w' | 'interval.1M' | 'status.trading' | 'status.closed' | 'status.midday' | 'status.preMarket' | 'status.afterHours' | 'status.auction' | 'index.shComposite' | 'index.szComponent' | 'index.chinext' | 'index.hangSeng' | 'index.hangSengTech' | 'index.hscei' | 'index.sp500' | 'index.nasdaq' | 'index.dowJones' | 'index.btc' | 'index.eth' | 'index.sol' | 'browser.history' | 'browser.historyEmpty' | 'browser.showMore' | 'browser.showLess' | 'browser.menu.aria' | 'browser.menu.rename' | 'browser.menu.fork' | 'browser.menu.archive' | 'entry.new' | 'entry.settings' | 'chat.fold' | 'chat.expand' | 'chat.resize';
|
|
4
|
+
declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
5
|
+
interface LocaleNamespaceMap {
|
|
6
|
+
/** Trading shell (sidebar browser, quote stage, side panel) copy. */
|
|
7
|
+
'dshtrading.market': MarketLocaleKey;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { MarketLocaleKey };
|