investing 0.1.0 → 0.1.2
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 +88 -60
- package/dist/algo-stategies/tv-scraper.d.ts +2 -0
- package/dist/algo-stategies/tv-scraper.d.ts.map +1 -0
- package/dist/alpaca/alpaca-mcp-client.d.ts +174 -0
- package/dist/alpaca/alpaca-mcp-client.d.ts.map +1 -0
- package/dist/alpaca/client.d.ts +21 -0
- package/dist/alpaca/client.d.ts.map +1 -0
- package/dist/archiver-web.es-BgXzilRH.cjs +1 -0
- package/dist/archiver-web.es-EPYdovFt.js +1 -0
- package/dist/correlate/metrics.d.ts +40 -0
- package/dist/correlate/metrics.d.ts.map +1 -0
- package/dist/correlate/model-persistence.d.ts +26 -0
- package/dist/correlate/model-persistence.d.ts.map +1 -0
- package/dist/correlate/predict-statistics.d.ts +14 -0
- package/dist/correlate/predict-statistics.d.ts.map +1 -0
- package/dist/correlate/rolling-stats.d.ts +27 -0
- package/dist/correlate/rolling-stats.d.ts.map +1 -0
- package/dist/correlate/types.d.ts +78 -0
- package/dist/correlate/types.d.ts.map +1 -0
- package/dist/correlate/xgboost-predictor.d.ts +19 -0
- package/dist/correlate/xgboost-predictor.d.ts.map +1 -0
- package/dist/correlate/xgboost-trainer.d.ts +112 -0
- package/dist/correlate/xgboost-trainer.d.ts.map +1 -0
- package/dist/db/client.d.ts +10 -0
- package/dist/db/client.d.ts.map +1 -0
- package/dist/db/d1-http.d.ts +38 -0
- package/dist/db/d1-http.d.ts.map +1 -0
- package/dist/db/index.d.ts +8870 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/relations.d.ts +21 -0
- package/dist/db/relations.d.ts.map +1 -0
- package/dist/db/schema.d.ts +8845 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/debate-research/stock-agents-api.d.ts +129 -0
- package/dist/debate-research/stock-agents-api.d.ts.map +1 -0
- package/dist/index-C9OpAHBe.js +15 -0
- package/dist/index-CLlAnStL-B7EBGdAY.cjs +1 -0
- package/dist/index-CLlAnStL-C554ZmGF.js +1 -0
- package/dist/index-CcyBsxYm.cjs +13 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/leaders/nvsty-leaders.d.ts +63 -0
- package/dist/leaders/nvsty-leaders.d.ts.map +1 -0
- package/dist/leaders/zulu.d.ts +167 -0
- package/dist/leaders/zulu.d.ts.map +1 -0
- package/dist/live-data/dukascopy-client.d.ts +102 -0
- package/dist/live-data/dukascopy-client.d.ts.map +1 -0
- package/dist/llm/debate-generator.d.ts +32 -0
- package/dist/llm/debate-generator.d.ts.map +1 -0
- package/dist/prediction/analysis/categories.d.ts +37 -0
- package/dist/prediction/analysis/categories.d.ts.map +1 -0
- package/dist/prediction/analysis/detector.d.ts +15 -0
- package/dist/prediction/analysis/detector.d.ts.map +1 -0
- package/dist/prediction/analysis/greeks.d.ts +11 -0
- package/dist/prediction/analysis/greeks.d.ts.map +1 -0
- package/dist/prediction/analysis/price-changes.d.ts +12 -0
- package/dist/prediction/analysis/price-changes.d.ts.map +1 -0
- package/dist/prediction/api/analytics.d.ts +46 -0
- package/dist/prediction/api/analytics.d.ts.map +1 -0
- package/dist/prediction/api/gamma.d.ts +30 -0
- package/dist/prediction/api/gamma.d.ts.map +1 -0
- package/dist/prediction/api/leaderboard.d.ts +113 -0
- package/dist/prediction/api/leaderboard.d.ts.map +1 -0
- package/dist/prediction/api/markets.d.ts +62 -0
- package/dist/prediction/api/markets.d.ts.map +1 -0
- package/dist/prediction/api/prices.d.ts +32 -0
- package/dist/prediction/api/prices.d.ts.map +1 -0
- package/dist/prediction/constants.d.ts +7 -0
- package/dist/prediction/constants.d.ts.map +1 -0
- package/dist/prediction/db/debates.d.ts +41 -0
- package/dist/prediction/db/debates.d.ts.map +1 -0
- package/dist/prediction/db/leaderboard.d.ts +37 -0
- package/dist/prediction/db/leaderboard.d.ts.map +1 -0
- package/dist/prediction/db/markets.d.ts +91 -0
- package/dist/prediction/db/markets.d.ts.map +1 -0
- package/dist/prediction/db/positions.d.ts +73 -0
- package/dist/prediction/db/positions.d.ts.map +1 -0
- package/dist/prediction/db/prices.d.ts +37 -0
- package/dist/prediction/db/prices.d.ts.map +1 -0
- package/dist/prediction/db/trade-history.d.ts +108 -0
- package/dist/prediction/db/trade-history.d.ts.map +1 -0
- package/dist/prediction/index.d.ts +26 -0
- package/dist/prediction/index.d.ts.map +1 -0
- package/dist/prediction/sync/holders.d.ts +10 -0
- package/dist/prediction/sync/holders.d.ts.map +1 -0
- package/dist/prediction/sync/incremental-markets.d.ts +18 -0
- package/dist/prediction/sync/incremental-markets.d.ts.map +1 -0
- package/dist/prediction/sync/leaderboard.d.ts +25 -0
- package/dist/prediction/sync/leaderboard.d.ts.map +1 -0
- package/dist/prediction/sync/markets.d.ts +25 -0
- package/dist/prediction/sync/markets.d.ts.map +1 -0
- package/dist/prediction/sync/orchestration.d.ts +12 -0
- package/dist/prediction/sync/orchestration.d.ts.map +1 -0
- package/dist/prediction/sync/prices.d.ts +25 -0
- package/dist/prediction/sync/prices.d.ts.map +1 -0
- package/dist/prediction/sync/trade-history.d.ts +96 -0
- package/dist/prediction/sync/trade-history.d.ts.map +1 -0
- package/dist/prediction/sync.d.ts +4 -0
- package/dist/prediction/sync.d.ts.map +1 -0
- package/dist/prediction/types.d.ts +131 -0
- package/dist/prediction/types.d.ts.map +1 -0
- package/dist/prediction/utils/categorizer.d.ts +37 -0
- package/dist/prediction/utils/categorizer.d.ts.map +1 -0
- package/dist/predictos/index.d.ts +12 -0
- package/dist/predictos/index.d.ts.map +1 -0
- package/dist/stock-names-data/stock-names.json.d.ts +4 -0
- package/dist/stocks/find-wikipedia-urls.d.ts +6 -0
- package/dist/stocks/find-wikipedia-urls.d.ts.map +1 -0
- package/dist/stocks/finnhub-utils.d.ts +42 -0
- package/dist/stocks/finnhub-utils.d.ts.map +1 -0
- package/dist/stocks/finnhub-wrapper.d.ts +49 -0
- package/dist/stocks/finnhub-wrapper.d.ts.map +1 -0
- package/dist/stocks/import-stock-names.d.ts +2 -0
- package/dist/stocks/import-stock-names.d.ts.map +1 -0
- package/dist/stocks/index.d.ts +12 -0
- package/dist/stocks/index.d.ts.map +1 -0
- package/dist/stocks/quote-cache-service.d.ts +94 -0
- package/dist/stocks/quote-cache-service.d.ts.map +1 -0
- package/dist/stocks/sec-filing-api.d.ts +35 -0
- package/dist/stocks/sec-filing-api.d.ts.map +1 -0
- package/dist/stocks/stock-names-client.d.ts +10 -0
- package/dist/stocks/stock-names-client.d.ts.map +1 -0
- package/dist/stocks/stock-names.d.ts +26 -0
- package/dist/stocks/stock-names.d.ts.map +1 -0
- package/dist/stocks/types.d.ts +547 -0
- package/dist/stocks/types.d.ts.map +1 -0
- package/dist/stocks/unified-quote-example.d.ts +30 -0
- package/dist/stocks/unified-quote-example.d.ts.map +1 -0
- package/dist/stocks/unified-quote-service.d.ts +111 -0
- package/dist/stocks/unified-quote-service.d.ts.map +1 -0
- package/dist/stocks/yahoo-finance-wrapper.d.ts +344 -0
- package/dist/stocks/yahoo-finance-wrapper.d.ts.map +1 -0
- package/dist/stocks/yfinance-wrapper.d.ts +10 -0
- package/dist/stocks/yfinance-wrapper.d.ts.map +1 -0
- package/dist/trading-agents/agents/debate-facilitator.d.ts +26 -0
- package/dist/trading-agents/agents/debate-facilitator.d.ts.map +1 -0
- package/dist/trading-agents/agents/fund-manager.d.ts +11 -0
- package/dist/trading-agents/agents/fund-manager.d.ts.map +1 -0
- package/dist/trading-agents/agents/improved-researchers.d.ts +16 -0
- package/dist/trading-agents/agents/improved-researchers.d.ts.map +1 -0
- package/dist/trading-agents/agents/market-analyst.d.ts +8 -0
- package/dist/trading-agents/agents/market-analyst.d.ts.map +1 -0
- package/dist/trading-agents/agents/news-analyst.d.ts +8 -0
- package/dist/trading-agents/agents/news-analyst.d.ts.map +1 -0
- package/dist/trading-agents/agents/researchers.d.ts +22 -0
- package/dist/trading-agents/agents/researchers.d.ts.map +1 -0
- package/dist/trading-agents/agents/risk-team.d.ts +22 -0
- package/dist/trading-agents/agents/risk-team.d.ts.map +1 -0
- package/dist/trading-agents/agents/trader.d.ts +10 -0
- package/dist/trading-agents/agents/trader.d.ts.map +1 -0
- package/dist/trading-agents/example.d.ts +7 -0
- package/dist/trading-agents/example.d.ts.map +1 -0
- package/dist/trading-agents/graph/trading-graph.d.ts +59 -0
- package/dist/trading-agents/graph/trading-graph.d.ts.map +1 -0
- package/dist/trading-agents/index.d.ts +13 -0
- package/dist/trading-agents/index.d.ts.map +1 -0
- package/dist/trading-agents/tools/alpaca-mcp-tools.d.ts +46 -0
- package/dist/trading-agents/tools/alpaca-mcp-tools.d.ts.map +1 -0
- package/dist/trading-agents/tools/data-tools.d.ts +18 -0
- package/dist/trading-agents/tools/data-tools.d.ts.map +1 -0
- package/dist/trading-agents/tools/langchain-tools.d.ts +78 -0
- package/dist/trading-agents/tools/langchain-tools.d.ts.map +1 -0
- package/dist/trading-agents/types/index.d.ts +171 -0
- package/dist/trading-agents/types/index.d.ts.map +1 -0
- package/dist/trading-agents/utils/llm-client.d.ts +45 -0
- package/dist/trading-agents/utils/llm-client.d.ts.map +1 -0
- package/dist/trading-agents/utils/memory.d.ts +38 -0
- package/dist/trading-agents/utils/memory.d.ts.map +1 -0
- package/dist/trending-topics/wiki-page-views.d.ts +133 -0
- package/dist/trending-topics/wiki-page-views.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +7 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/package.json +47 -17
- package/data/globe.json +0 -182
- package/data/sector-info.json +0 -1540
- package/data/sectors-industries.json +0 -327
- package/data/stock-indexes.json +0 -106
- package/data/stock-names.json +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Investing - Reusable investment utilities and trading tools
|
|
3
|
+
*
|
|
4
|
+
* This package provides:
|
|
5
|
+
* - Trading agent frameworks
|
|
6
|
+
* - Stock data and analysis tools
|
|
7
|
+
* - Prediction market integrations
|
|
8
|
+
* - Alpaca trading API client
|
|
9
|
+
* - Constants and data files
|
|
10
|
+
* - Utility functions
|
|
11
|
+
*/
|
|
12
|
+
export * from './db';
|
|
13
|
+
export * from './correlate/predict-statistics';
|
|
14
|
+
export * from './trading-agents';
|
|
15
|
+
export * from './alpaca/client';
|
|
16
|
+
export * from './stocks';
|
|
17
|
+
export * from './prediction';
|
|
18
|
+
export * from './predictos';
|
|
19
|
+
export * from './algo-stategies/tv-scraper';
|
|
20
|
+
export * from './leaders/nvsty-leaders';
|
|
21
|
+
export * from './leaders/zulu';
|
|
22
|
+
export * from './llm/debate-generator';
|
|
23
|
+
export * from './alpaca/alpaca-mcp-client';
|
|
24
|
+
export * from './debate-research/stock-agents-api';
|
|
25
|
+
export * from './trending-topics/wiki-page-views';
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,cAAc,MAAM,CAAC;AAGrB,cAAc,gCAAgC,CAAC;AAG/C,cAAc,kBAAkB,CAAC;AAGjC,cAAc,iBAAiB,CAAC;AAGhC,cAAc,UAAU,CAAC;AAGzB,cAAc,cAAc,CAAC;AAI7B,cAAc,aAAa,CAAC;AAG5B,cAAc,6BAA6B,CAAC;AAG5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,wBAAwB,CAAC;AAGvC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,oCAAoC,CAAC;AAGnD,cAAc,mCAAmC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CcyBsxYm.cjs"),t=require("predictos");exports.AlpacaMCPClient=e.AlpacaMCPClient,exports.BearResearcher=e.BearResearcher,exports.BullResearcher=e.BullResearcher,exports.CompanyAndAccessionNumberClass=e.CompanyAndAccessionNumberClass,exports.DEFAULT_D1_DATABASE_ID=e.DEFAULT_D1_DATABASE_ID,exports.Downloader=e.Downloader,exports.FinancialSituationMemory=e.FinancialSituationMemory,exports.FinnhubWrapper=e.FinnhubWrapper,exports.InvestmentJudge=e.InvestmentJudge,exports.MarketAnalyst=e.MarketAnalyst,exports.POLYMARKET_CATEGORIES=e.POLYMARKET_CATEGORIES,exports.RequestedFilingsClass=e.RequestedFilingsClass,exports.StockAgentsAPI=e.StockAgentsAPI,exports.TOP_STOCKS=e.TOP_STOCKS,exports.Trader=e.Trader,exports.TradingAgentsGraph=e.TradingAgentsGraph,exports.UnifiedLLMClient=e.UnifiedLLMClient,exports.UnifiedQuoteService=e.UnifiedQuoteService,exports.WikiPageviews=e.WikiPageviews,exports.YahooFinanceWrapper=e.YahooFinanceWrapper,exports.alpacaMCPClient=e.alpacaMCPClient,exports.analyzeCategories=e.analyzeCategories,exports.analyzeStock=e.analyzeStock,exports.analyzeTopStocks=e.analyzeTopStocks,exports.backtestStock=e.backtestStock,exports.calculateGreeks=e.calculateGreeks,exports.calculatePriceChanges=e.calculatePriceChanges,exports.calculateR2=e.calculateR2,exports.calculateRMSE=e.calculateRMSE,exports.calculateRollingStats=e.calculateRollingStats,exports.chatWithAI=e.chatWithAI,exports.checkGammaHealth=e.checkGammaHealth,exports.checkMarket=e.checkMarket,exports.cleanCompanyName=e.cleanCompanyName,exports.createAlpacaBrokerClient=e.createAlpacaBrokerClient,exports.createAlpacaClient=e.createAlpacaClient,exports.createLLM=e.createLLM,exports.db=e.db,exports.detectMovements=e.detectMovements,exports.fetchActiveMarketsWithPrices=e.fetchActiveMarketsWithPrices,exports.fetchAllMarkets=e.fetchAllMarkets,exports.fetchAllTraderActivity=e.fetchAllTraderActivity,exports.fetchAndStoreTopTraders=e.fetchAndStoreTopTraders,exports.fetchLeaderboard=e.fetchLeaderboard,exports.fetchMarket=e.fetchMarket,exports.fetchMarketDetails=e.fetchMarketDetails,exports.fetchMarketHolders=e.fetchMarketHolders,exports.fetchMarketOrderBook=e.fetchMarketOrderBook,exports.fetchMarketSummary=e.fetchMarketSummary,exports.fetchMarkets=e.fetchMarkets,exports.fetchMarketsDashboard=e.fetchMarketsDashboard,exports.fetchPriceHistory=e.fetchPriceHistory,exports.fetchTopTraders=e.fetchTopTraders,exports.fetchTraderActivity=e.fetchTraderActivity,exports.fetchTraderPositions=e.fetchTraderPositions,exports.fetchTraderProfiles=e.fetchTraderProfiles,exports.fetchZuluTraderDetail=e.fetchZuluTraderDetail,exports.fetchZuluTraders=e.fetchZuluTraders,exports.finnhub=e.finnhub,exports.formatTriggerType=e.formatTriggerType,exports.generateDebateAnalysis=e.generateDebateAnalysis,exports.generateDebateAnalysisWithOpenAI=e.generateDebateAnalysisWithOpenAI,exports.getAccount=e.getAccount,exports.getAlpacaMCPClient=e.getAlpacaMCPClient,exports.getCachedMarkets=e.getCachedMarkets,exports.getCategories=e.getCategories,exports.getD1HttpCredentials=e.getD1HttpCredentials,exports.getFundamentals=e.getFundamentals,exports.getHistoricalQuotes=e.getHistoricalQuotes,exports.getIndicators=e.getIndicators,exports.getLatestTradeTimestamp=e.getLatestTradeTimestamp,exports.getLeaders=e.getLeaders,exports.getMarketById=e.getMarketById,exports.getMarketDebate=e.getMarketDebate,exports.getMarketHolders=e.getMarketHolders,exports.getMarketPositions=e.getMarketPositions,exports.getMarkets=e.getMarkets,exports.getMarketsByCategory=e.getMarketsByCategory,exports.getNews=e.getNews,exports.getPriceHistory=e.getPriceHistory,exports.getQuoteFromSource=e.getQuoteFromSource,exports.getQuotes=e.getQuotes,exports.getServiceHealth=e.getServiceHealth,exports.getStockData=e.getStockData,exports.getSyncStatusStats=e.getSyncStatusStats,exports.getTradeHistorySyncProgress=e.getTradeHistorySyncProgress,exports.getTradeSyncStatus=e.getTradeSyncStatus,exports.getTraderPositions=e.getTraderPositions,exports.getTraderTradeHistory=e.getTraderTradeHistory,exports.getTraderTradeStats=e.getTraderTradeStats,exports.getTradersNeedingSync=e.getTradersNeedingSync,exports.getZuluTopByRank=e.getZuluTopByRank,exports.getZuluTraderById=e.getZuluTraderById,exports.getZuluTraders=e.getZuluTraders,exports.greeksEnricher=e.greeksEnricher,exports.isMarketBlocked=e.isMarketBlocked,exports.loadModel=e.loadModel,exports.myLeadersAPI=e.myLeadersAPI,exports.normalizeChartQuotes=e.normalizeChartQuotes,exports.pageviews=e.pageviews,exports.placeOrder=e.placeOrder,exports.predictFuture=e.predictFuture,exports.queryKeys=e.queryKeys,exports.resumeTradeHistorySync=e.resumeTradeHistorySync,exports.saveCategories=e.saveCategories,exports.saveDebate=e.saveDebate,exports.saveHolders=e.saveHolders,exports.saveLeaderboardData=e.saveLeaderboardData,exports.saveLeaders=e.saveLeaders,exports.saveMarketPositions=e.saveMarketPositions,exports.saveMarkets=e.saveMarkets,exports.saveModel=e.saveModel,exports.savePositions=e.savePositions,exports.savePriceHistory=e.savePriceHistory,exports.saveTradeHistory=e.saveTradeHistory,exports.saveZuluCurrencyStats=e.saveZuluCurrencyStats,exports.saveZuluTraders=e.saveZuluTraders,exports.searchMarkets=e.searchMarkets,exports.searchMarketsInDB=e.searchMarketsInDB,exports.searchPublic=e.searchPublic,exports.searchZuluTraders=e.searchZuluTraders,exports.splitTrainTest=e.splitTrainTest,exports.stockAgentsAPI=e.stockAgentsAPI,exports.stockNames=e.stockNames,exports.syncAll=e.syncAll,exports.syncAllMarkets=e.syncAllMarkets,exports.syncCopyTradingLeadersOrders=e.syncCopyTradingLeadersOrders,exports.syncLeaderboard=e.syncLeaderboard,exports.syncLeadersAndCategories=e.syncLeadersAndCategories,exports.syncMarketHolders=e.syncMarketHolders,exports.syncMarkets=e.syncMarkets,exports.syncMarketsIncremental=e.syncMarketsIncremental,exports.syncPriceHistory=e.syncPriceHistory,exports.syncTopTradersTradeHistory=e.syncTopTradersTradeHistory,exports.syncTraderTradeHistory=e.syncTraderTradeHistory,exports.syncZuluTraderDetails=e.syncZuluTraderDetails,exports.syncZuluTraders=e.syncZuluTraders,exports.trainModels=e.trainModels,exports.unifiedQuoteService=e.unifiedQuoteService,exports.updateTradeSyncStatus=e.updateTradeSyncStatus,exports.yahooFinance=e.yahooFinance,exports.yahooFinanceWrapper=e.yahooFinanceWrapper,exports.yfinance=e.yfinance,Object.keys(t).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as a,B as e,a as s,C as t,D as r,b as c,F as i,d as n,I as o,M as d,P as l,R as g,S as y,T as u,e as T,f as h,U as k,h as M,W as p,Y as A,i as S,j as f,k as C,l as m,m as v,n as P,o as H,p as D,q as L,r as b,s as I,t as B,u as F,v as Z,w as R,x as O,y as E,z as W,E as Q,G as N,H as _,J as w,K as z,L as G,N as x,O as K,Q as U,V as q,X as Y,Z as j,_ as J,$ as V,a0 as X,a1 as $,a2 as aa,a3 as ea,a4 as sa,a5 as ta,a6 as ra,a7 as ca,a8 as ia,a9 as na,aa as oa,ab as da,ac as la,ad as ga,ae as ya,af as ua,ag as Ta,ah as ha,ai as ka,aj as Ma,ak as pa,al as Aa,am as Sa,an as fa,ao as Ca,ap as ma,aq as va,ar as Pa,as as Ha,at as Da,au as La,av as ba,aw as Ia,ax as Ba,ay as Fa,az as Za,aA as Ra,aB as Oa,aC as Ea,aD as Wa,aE as Qa,aF as Na,aG as _a,aH as wa,aI as za,aJ as Ga,aK as xa,aL as Ka,aM as Ua,aN as qa,aO as Ya,aP as ja,aQ as Ja,aR as Va,aS as Xa,aT as $a,aU as ae,aV as ee,aW as se,aX as te,aY as re,aZ as ce,a_ as ie,a$ as ne,b0 as oe,b1 as de,b2 as le,b3 as ge,b4 as ye,b5 as ue,b6 as Te,b7 as he,b8 as ke,b9 as Me,ba as pe,bb as Ae,bc as Se,bd as fe,be as Ce,bf as me,bg as ve,bh as Pe,bi as He,bj as De,bk as Le,bl as be,bm as Ie,bn as Be,bo as Fe,bp as Ze,bq as Re}from"./index-C9OpAHBe.js";export*from"predictos";export{a as AlpacaMCPClient,e as BearResearcher,s as BullResearcher,t as CompanyAndAccessionNumberClass,r as DEFAULT_D1_DATABASE_ID,c as Downloader,i as FinancialSituationMemory,n as FinnhubWrapper,o as InvestmentJudge,d as MarketAnalyst,l as POLYMARKET_CATEGORIES,g as RequestedFilingsClass,y as StockAgentsAPI,u as TOP_STOCKS,T as Trader,h as TradingAgentsGraph,k as UnifiedLLMClient,M as UnifiedQuoteService,p as WikiPageviews,A as YahooFinanceWrapper,S as alpacaMCPClient,f as analyzeCategories,C as analyzeStock,m as analyzeTopStocks,v as backtestStock,P as calculateGreeks,H as calculatePriceChanges,D as calculateR2,L as calculateRMSE,b as calculateRollingStats,I as chatWithAI,B as checkGammaHealth,F as checkMarket,Z as cleanCompanyName,R as createAlpacaBrokerClient,O as createAlpacaClient,E as createLLM,W as db,Q as detectMovements,N as fetchActiveMarketsWithPrices,_ as fetchAllMarkets,w as fetchAllTraderActivity,z as fetchAndStoreTopTraders,G as fetchLeaderboard,x as fetchMarket,K as fetchMarketDetails,U as fetchMarketHolders,q as fetchMarketOrderBook,Y as fetchMarketSummary,j as fetchMarkets,J as fetchMarketsDashboard,V as fetchPriceHistory,X as fetchTopTraders,$ as fetchTraderActivity,aa as fetchTraderPositions,ea as fetchTraderProfiles,sa as fetchZuluTraderDetail,ta as fetchZuluTraders,ra as finnhub,ca as formatTriggerType,ia as generateDebateAnalysis,na as generateDebateAnalysisWithOpenAI,oa as getAccount,da as getAlpacaMCPClient,la as getCachedMarkets,ga as getCategories,ya as getD1HttpCredentials,ua as getFundamentals,Ta as getHistoricalQuotes,ha as getIndicators,ka as getLatestTradeTimestamp,Ma as getLeaders,pa as getMarketById,Aa as getMarketDebate,Sa as getMarketHolders,fa as getMarketPositions,Ca as getMarkets,ma as getMarketsByCategory,va as getNews,Pa as getPriceHistory,Ha as getQuoteFromSource,Da as getQuotes,La as getServiceHealth,ba as getStockData,Ia as getSyncStatusStats,Ba as getTradeHistorySyncProgress,Fa as getTradeSyncStatus,Za as getTraderPositions,Ra as getTraderTradeHistory,Oa as getTraderTradeStats,Ea as getTradersNeedingSync,Wa as getZuluTopByRank,Qa as getZuluTraderById,Na as getZuluTraders,_a as greeksEnricher,wa as isMarketBlocked,za as loadModel,Ga as myLeadersAPI,xa as normalizeChartQuotes,Ka as pageviews,Ua as placeOrder,qa as predictFuture,Ya as queryKeys,ja as resumeTradeHistorySync,Ja as saveCategories,Va as saveDebate,Xa as saveHolders,$a as saveLeaderboardData,ae as saveLeaders,ee as saveMarketPositions,se as saveMarkets,te as saveModel,re as savePositions,ce as savePriceHistory,ie as saveTradeHistory,ne as saveZuluCurrencyStats,oe as saveZuluTraders,de as searchMarkets,le as searchMarketsInDB,ge as searchPublic,ye as searchZuluTraders,ue as splitTrainTest,Te as stockAgentsAPI,he as stockNames,ke as syncAll,Me as syncAllMarkets,pe as syncCopyTradingLeadersOrders,Ae as syncLeaderboard,Se as syncLeadersAndCategories,fe as syncMarketHolders,Ce as syncMarkets,me as syncMarketsIncremental,ve as syncPriceHistory,Pe as syncTopTradersTradeHistory,He as syncTraderTradeHistory,De as syncZuluTraderDetails,Le as syncZuluTraders,be as trainModels,Ie as unifiedQuoteService,Be as updateTradeSyncStatus,Fe as yahooFinance,Ze as yahooFinanceWrapper,Re as yfinance};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
interface Trader {
|
|
2
|
+
/** The unique identifier of the trader. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** The name of the trader. */
|
|
5
|
+
name: string;
|
|
6
|
+
/** The rank of the trader among others. */
|
|
7
|
+
rank: number;
|
|
8
|
+
/** The reputation score of the trader. */
|
|
9
|
+
rep: number;
|
|
10
|
+
/** The total number of trades executed by the trader. */
|
|
11
|
+
trades: number;
|
|
12
|
+
/** The win rate percentage of the trader. */
|
|
13
|
+
winRate: number;
|
|
14
|
+
/** The total gain accumulated by the trader. */
|
|
15
|
+
totalGain: number;
|
|
16
|
+
/** The average return per trade for the trader. */
|
|
17
|
+
avgReturn: number;
|
|
18
|
+
/** An array of trades associated with the trader. */
|
|
19
|
+
orders: Trade[];
|
|
20
|
+
/** The broker associated with the trader. */
|
|
21
|
+
broker: string;
|
|
22
|
+
}
|
|
23
|
+
interface Trade {
|
|
24
|
+
/** The stock symbol of the trade. */
|
|
25
|
+
symbol: string;
|
|
26
|
+
/** The type of trade: 'buy', 'sell', or 'short'. */
|
|
27
|
+
type: "buy" | "sell" | "short";
|
|
28
|
+
/** The price at which the trade was executed. */
|
|
29
|
+
price: number;
|
|
30
|
+
/** The timestamp of the trade in ISO 8601 format. */
|
|
31
|
+
time: string;
|
|
32
|
+
/** The profit on close in percentage, if the trade is closed. */
|
|
33
|
+
gain?: number;
|
|
34
|
+
/** The previous price on open, relevant for closed or short trades. */
|
|
35
|
+
previousPrice?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* NVSTLY API client for fetching trader rankings and trades.
|
|
39
|
+
*/
|
|
40
|
+
declare class LeadersAPI {
|
|
41
|
+
api: any;
|
|
42
|
+
constructor();
|
|
43
|
+
/**
|
|
44
|
+
* Fetches trader rankings from the NVSTLY API.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} [time='1mo'] - The time frame for the rankings (e.g., '1mo', '3mo', '1y').
|
|
47
|
+
* @param {number} [limit=100] - Maximum number of traders to fetch
|
|
48
|
+
* @returns {Promise<Trader[]>} A promise that resolves to the trader rankings data.
|
|
49
|
+
*/
|
|
50
|
+
getTraderRankings: (time?: string, limit?: number) => Promise<Trader[]>;
|
|
51
|
+
/**
|
|
52
|
+
* Fetches trader order flow from the NVSTLY API.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} traderId - The ID of the trader to fetch trades for.
|
|
55
|
+
* @param {string} [time='1mo'] - The time frame for the trades (e.g., '1mo', '3mo', '1y').
|
|
56
|
+
* @returns {Promise<Trade[]>} A promise that resolves to the trader rankings data.
|
|
57
|
+
*/
|
|
58
|
+
getTraderTrades: (traderId: string, time?: string) => Promise<Trade[]>;
|
|
59
|
+
}
|
|
60
|
+
export declare const myLeadersAPI: LeadersAPI;
|
|
61
|
+
export declare function syncCopyTradingLeadersOrders(): Promise<Trader[]>;
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=nvsty-leaders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nvsty-leaders.d.ts","sourceRoot":"","sources":["../../src/leaders/nvsty-leaders.ts"],"names":[],"mappings":"AAQA,UAAU,MAAM;IACd,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,KAAK;IACb,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/B,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,cAAM,UAAU;IACd,GAAG,EAAE,GAAG,CAAC;;IAST;;;;;;OAMG;IACH,iBAAiB,GAAU,aAAY,EAAE,cAAW,KAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAsCtE;IAEF;;;;;;OAMG;IACH,eAAe,GACb,UAAU,MAAM,EAChB,OAAM,MAAc,KACnB,OAAO,CAAC,KAAK,EAAE,CAAC,CA+BjB;CACH;AAED,eAAO,MAAM,YAAY,YAAmB,CAAC;AAE7C,wBAAsB,4BAA4B,sBAuGjD"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
export declare function fetchZuluTraders(): Promise<any>;
|
|
2
|
+
export declare function fetchZuluTraderDetail(providerId: number): Promise<unknown>;
|
|
3
|
+
export declare function saveZuluTraders(traders: any[]): Promise<void>;
|
|
4
|
+
export declare function saveZuluCurrencyStats(providerId: number, stats: any[]): Promise<void>;
|
|
5
|
+
export declare function getZuluTraders(limit?: number): Promise<{
|
|
6
|
+
providerId: number;
|
|
7
|
+
name: string | null;
|
|
8
|
+
strategyDesc: string | null;
|
|
9
|
+
countryCode: string | null;
|
|
10
|
+
countryName: string | null;
|
|
11
|
+
brokerName: string | null;
|
|
12
|
+
balance: number | null;
|
|
13
|
+
equity: number | null;
|
|
14
|
+
followers: number | null;
|
|
15
|
+
liveFollowers: number | null;
|
|
16
|
+
roiAnnualized: number | null;
|
|
17
|
+
roiProfit: number | null;
|
|
18
|
+
zuluRank: number | null;
|
|
19
|
+
bestTrade: number | null;
|
|
20
|
+
worstTrade: number | null;
|
|
21
|
+
profitableTrades: number | null;
|
|
22
|
+
losingTrades: number | null;
|
|
23
|
+
avgDrawdown: number | null;
|
|
24
|
+
maxDrawdown: number | null;
|
|
25
|
+
maxDrawdownPercent: number | null;
|
|
26
|
+
leverage: number | null;
|
|
27
|
+
isEa: number | null;
|
|
28
|
+
currencies: string | null;
|
|
29
|
+
weeks: number | null;
|
|
30
|
+
demo: number | null;
|
|
31
|
+
avgTradeSeconds: number | null;
|
|
32
|
+
avgPnlPerTrade: number | null;
|
|
33
|
+
winRate: number | null;
|
|
34
|
+
totalTrades: number | null;
|
|
35
|
+
pageVisits: number | null;
|
|
36
|
+
includedInWatchlist: number | null;
|
|
37
|
+
registrationDate: Date | null;
|
|
38
|
+
lastOpenTradeDate: Date | null;
|
|
39
|
+
updatedAt: Date | null;
|
|
40
|
+
}[]>;
|
|
41
|
+
export declare function getZuluTraderById(providerId: number): Promise<{
|
|
42
|
+
currencyStats: {
|
|
43
|
+
id: string;
|
|
44
|
+
providerId: number;
|
|
45
|
+
currencyName: string | null;
|
|
46
|
+
totalCount: number | null;
|
|
47
|
+
winCount: number | null;
|
|
48
|
+
winPercent: number | null;
|
|
49
|
+
totalBuyCount: number | null;
|
|
50
|
+
totalSellCount: number | null;
|
|
51
|
+
pips: number | null;
|
|
52
|
+
createdAt: Date | null;
|
|
53
|
+
}[];
|
|
54
|
+
providerId: number;
|
|
55
|
+
name: string | null;
|
|
56
|
+
strategyDesc: string | null;
|
|
57
|
+
countryCode: string | null;
|
|
58
|
+
countryName: string | null;
|
|
59
|
+
brokerName: string | null;
|
|
60
|
+
balance: number | null;
|
|
61
|
+
equity: number | null;
|
|
62
|
+
followers: number | null;
|
|
63
|
+
liveFollowers: number | null;
|
|
64
|
+
roiAnnualized: number | null;
|
|
65
|
+
roiProfit: number | null;
|
|
66
|
+
zuluRank: number | null;
|
|
67
|
+
bestTrade: number | null;
|
|
68
|
+
worstTrade: number | null;
|
|
69
|
+
profitableTrades: number | null;
|
|
70
|
+
losingTrades: number | null;
|
|
71
|
+
avgDrawdown: number | null;
|
|
72
|
+
maxDrawdown: number | null;
|
|
73
|
+
maxDrawdownPercent: number | null;
|
|
74
|
+
leverage: number | null;
|
|
75
|
+
isEa: number | null;
|
|
76
|
+
currencies: string | null;
|
|
77
|
+
weeks: number | null;
|
|
78
|
+
demo: number | null;
|
|
79
|
+
avgTradeSeconds: number | null;
|
|
80
|
+
avgPnlPerTrade: number | null;
|
|
81
|
+
winRate: number | null;
|
|
82
|
+
totalTrades: number | null;
|
|
83
|
+
pageVisits: number | null;
|
|
84
|
+
includedInWatchlist: number | null;
|
|
85
|
+
registrationDate: Date | null;
|
|
86
|
+
lastOpenTradeDate: Date | null;
|
|
87
|
+
updatedAt: Date | null;
|
|
88
|
+
} | null>;
|
|
89
|
+
export declare function getZuluTopByRank(limit?: number): Promise<{
|
|
90
|
+
providerId: number;
|
|
91
|
+
name: string | null;
|
|
92
|
+
strategyDesc: string | null;
|
|
93
|
+
countryCode: string | null;
|
|
94
|
+
countryName: string | null;
|
|
95
|
+
brokerName: string | null;
|
|
96
|
+
balance: number | null;
|
|
97
|
+
equity: number | null;
|
|
98
|
+
followers: number | null;
|
|
99
|
+
liveFollowers: number | null;
|
|
100
|
+
roiAnnualized: number | null;
|
|
101
|
+
roiProfit: number | null;
|
|
102
|
+
zuluRank: number | null;
|
|
103
|
+
bestTrade: number | null;
|
|
104
|
+
worstTrade: number | null;
|
|
105
|
+
profitableTrades: number | null;
|
|
106
|
+
losingTrades: number | null;
|
|
107
|
+
avgDrawdown: number | null;
|
|
108
|
+
maxDrawdown: number | null;
|
|
109
|
+
maxDrawdownPercent: number | null;
|
|
110
|
+
leverage: number | null;
|
|
111
|
+
isEa: number | null;
|
|
112
|
+
currencies: string | null;
|
|
113
|
+
weeks: number | null;
|
|
114
|
+
demo: number | null;
|
|
115
|
+
avgTradeSeconds: number | null;
|
|
116
|
+
avgPnlPerTrade: number | null;
|
|
117
|
+
winRate: number | null;
|
|
118
|
+
totalTrades: number | null;
|
|
119
|
+
pageVisits: number | null;
|
|
120
|
+
includedInWatchlist: number | null;
|
|
121
|
+
registrationDate: Date | null;
|
|
122
|
+
lastOpenTradeDate: Date | null;
|
|
123
|
+
updatedAt: Date | null;
|
|
124
|
+
}[]>;
|
|
125
|
+
export declare function searchZuluTraders(filters: any): Promise<{
|
|
126
|
+
providerId: number;
|
|
127
|
+
name: string | null;
|
|
128
|
+
strategyDesc: string | null;
|
|
129
|
+
countryCode: string | null;
|
|
130
|
+
countryName: string | null;
|
|
131
|
+
brokerName: string | null;
|
|
132
|
+
balance: number | null;
|
|
133
|
+
equity: number | null;
|
|
134
|
+
followers: number | null;
|
|
135
|
+
liveFollowers: number | null;
|
|
136
|
+
roiAnnualized: number | null;
|
|
137
|
+
roiProfit: number | null;
|
|
138
|
+
zuluRank: number | null;
|
|
139
|
+
bestTrade: number | null;
|
|
140
|
+
worstTrade: number | null;
|
|
141
|
+
profitableTrades: number | null;
|
|
142
|
+
losingTrades: number | null;
|
|
143
|
+
avgDrawdown: number | null;
|
|
144
|
+
maxDrawdown: number | null;
|
|
145
|
+
maxDrawdownPercent: number | null;
|
|
146
|
+
leverage: number | null;
|
|
147
|
+
isEa: number | null;
|
|
148
|
+
currencies: string | null;
|
|
149
|
+
weeks: number | null;
|
|
150
|
+
demo: number | null;
|
|
151
|
+
avgTradeSeconds: number | null;
|
|
152
|
+
avgPnlPerTrade: number | null;
|
|
153
|
+
winRate: number | null;
|
|
154
|
+
totalTrades: number | null;
|
|
155
|
+
pageVisits: number | null;
|
|
156
|
+
includedInWatchlist: number | null;
|
|
157
|
+
registrationDate: Date | null;
|
|
158
|
+
lastOpenTradeDate: Date | null;
|
|
159
|
+
updatedAt: Date | null;
|
|
160
|
+
}[]>;
|
|
161
|
+
export declare function syncZuluTraders(): Promise<{
|
|
162
|
+
traders: any;
|
|
163
|
+
}>;
|
|
164
|
+
export declare function syncZuluTraderDetails(providerIds: number[]): Promise<{
|
|
165
|
+
details: number;
|
|
166
|
+
}>;
|
|
167
|
+
//# sourceMappingURL=zulu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zulu.d.ts","sourceRoot":"","sources":["../../src/leaders/zulu.ts"],"names":[],"mappings":"AAQA,wBAAsB,gBAAgB,iBAiBrC;AAED,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,MAAM,oBAkB7D;AAMD,wBAAsB,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,iBAoGnD;AAED,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,iBAgC3E;AAMD,wBAAsB,cAAc,CAAC,KAAK,SAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAM9C;AAED,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAkBzD;AAED,wBAAsB,gBAAgB,CAAC,KAAK,SAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAMhD;AAED,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyBnD;AAMD,wBAAsB,eAAe;;GASpC;AAED,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE;;GAoBhE"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export type InstrumentType = string;
|
|
2
|
+
export type AssetCategory = "indices" | "forex" | "crypto" | "usstocks" | "etf" | "worldstocks" | "commodities" | "bonds";
|
|
3
|
+
export type TimeframeType = "tick" | "s1" | "m1" | "m5" | "m15" | "m30" | "h1" | "h4" | "d1" | "mn1";
|
|
4
|
+
export type FormatType = "array" | "json" | "csv";
|
|
5
|
+
export type PriceType = "bid" | "ask";
|
|
6
|
+
export interface DukascopyConfig {
|
|
7
|
+
instrument: any;
|
|
8
|
+
dates: {
|
|
9
|
+
from: Date | string | number;
|
|
10
|
+
to?: Date | string | number;
|
|
11
|
+
};
|
|
12
|
+
timeframe?: TimeframeType;
|
|
13
|
+
format?: FormatType;
|
|
14
|
+
priceType?: PriceType;
|
|
15
|
+
volumes?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface RealTimeConfig {
|
|
18
|
+
instrument: InstrumentType;
|
|
19
|
+
timeframe?: TimeframeType;
|
|
20
|
+
dates?: {
|
|
21
|
+
from: Date | string | number;
|
|
22
|
+
to?: Date | string | number;
|
|
23
|
+
};
|
|
24
|
+
last?: number;
|
|
25
|
+
volumes?: boolean;
|
|
26
|
+
format?: FormatType;
|
|
27
|
+
priceType?: PriceType;
|
|
28
|
+
}
|
|
29
|
+
export interface JsonItem {
|
|
30
|
+
timestamp: number;
|
|
31
|
+
open: number;
|
|
32
|
+
high: number;
|
|
33
|
+
low: number;
|
|
34
|
+
close: number;
|
|
35
|
+
volume?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface JsonItemTick {
|
|
38
|
+
timestamp: number;
|
|
39
|
+
askPrice: number;
|
|
40
|
+
bidPrice: number;
|
|
41
|
+
askVolume?: number;
|
|
42
|
+
bidVolume?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Fetch historical market data from Dukascopy
|
|
46
|
+
* Supports forex, stocks, crypto, ETFs, indices, commodities, and bonds
|
|
47
|
+
*/
|
|
48
|
+
export declare function getHistoricalData(config: DukascopyConfig): Promise<{
|
|
49
|
+
success: boolean;
|
|
50
|
+
data: import('dukascopy-node').Output;
|
|
51
|
+
error?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
success: boolean;
|
|
54
|
+
error: any;
|
|
55
|
+
data?: undefined;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Fetch real-time market data from Dukascopy
|
|
59
|
+
* Supports forex, stocks, crypto, ETFs, indices, commodities, and bonds
|
|
60
|
+
*/
|
|
61
|
+
export declare function getRealTimeData(config: RealTimeConfig): Promise<{
|
|
62
|
+
success: boolean;
|
|
63
|
+
data: import('dukascopy-node').ArrayItem[] & import('dukascopy-node').ArrayTickItem[] & import('dukascopy-node').JsonItem[] & import('dukascopy-node').JsonItemTick[] & string;
|
|
64
|
+
error?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
success: boolean;
|
|
67
|
+
error: any;
|
|
68
|
+
data?: undefined;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Convert Dukascopy JSON data to chart format
|
|
72
|
+
*/
|
|
73
|
+
export declare function convertToChartData(data: JsonItem[] | JsonItemTick[]): any[];
|
|
74
|
+
/**
|
|
75
|
+
* Comprehensive list of supported instruments across all asset classes
|
|
76
|
+
* Dukascopy supports 1,600+ instruments including Forex, Stocks, Crypto, ETFs, Indices, Commodities, and Bonds
|
|
77
|
+
*/
|
|
78
|
+
export interface Instrument {
|
|
79
|
+
symbol: string;
|
|
80
|
+
name: string;
|
|
81
|
+
category: AssetCategory;
|
|
82
|
+
}
|
|
83
|
+
export declare const ALL_INSTRUMENTS: Instrument[];
|
|
84
|
+
export declare const FOREX_INSTRUMENTS: Instrument[];
|
|
85
|
+
export declare const CRYPTO_INSTRUMENTS: Instrument[];
|
|
86
|
+
export declare const STOCK_INSTRUMENTS: Instrument[];
|
|
87
|
+
export declare const ETF_INSTRUMENTS: Instrument[];
|
|
88
|
+
export declare const INDEX_INSTRUMENTS: Instrument[];
|
|
89
|
+
export declare const COMMODITY_INSTRUMENTS: Instrument[];
|
|
90
|
+
export declare const BOND_INSTRUMENTS: Instrument[];
|
|
91
|
+
/**
|
|
92
|
+
* Helper functions to filter instruments by category
|
|
93
|
+
*/
|
|
94
|
+
export declare function getInstrumentsByCategory(category: AssetCategory): Instrument[];
|
|
95
|
+
export declare function getInstrumentBySymbol(symbol: string): Instrument | undefined;
|
|
96
|
+
export declare function searchInstruments(query: string): Instrument[];
|
|
97
|
+
/**
|
|
98
|
+
* Legacy exports for backwards compatibility
|
|
99
|
+
*/
|
|
100
|
+
export declare const getForexHistoricalData: typeof getHistoricalData;
|
|
101
|
+
export declare const getForexRealTimeData: typeof getRealTimeData;
|
|
102
|
+
//# sourceMappingURL=dukascopy-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dukascopy-client.d.ts","sourceRoot":"","sources":["../../src/live-data/dukascopy-client.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface MarketData {
|
|
2
|
+
question: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
currentYesPrice: number;
|
|
5
|
+
currentNoPrice: number;
|
|
6
|
+
volume24hr?: number;
|
|
7
|
+
volumeTotal?: number;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
}
|
|
10
|
+
interface DebateAnalysis {
|
|
11
|
+
yesArguments: string[];
|
|
12
|
+
noArguments: string[];
|
|
13
|
+
yesSummary: string;
|
|
14
|
+
noSummary: string;
|
|
15
|
+
keyFactors: string[];
|
|
16
|
+
uncertainties: string[];
|
|
17
|
+
}
|
|
18
|
+
interface DebateAnalysis {
|
|
19
|
+
yesArguments: string[];
|
|
20
|
+
noArguments: string[];
|
|
21
|
+
yesSummary: string;
|
|
22
|
+
noSummary: string;
|
|
23
|
+
keyFactors: string[];
|
|
24
|
+
uncertainties: string[];
|
|
25
|
+
modelYesProbability: number;
|
|
26
|
+
modelNoProbability: number;
|
|
27
|
+
commentaryOnDiscrepancy: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function generateDebateAnalysis(marketData: MarketData, apiKey?: string): Promise<DebateAnalysis>;
|
|
30
|
+
export declare function generateDebateAnalysisWithOpenAI(marketData: MarketData, apiKey?: string): Promise<DebateAnalysis>;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=debate-generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debate-generator.d.ts","sourceRoot":"","sources":["../../src/llm/debate-generator.ts"],"names":[],"mappings":"AAGA,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AA2DD,UAAU,cAAc;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;IAExB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAiJD,wBAAsB,sBAAsB,CAC1C,UAAU,EAAE,UAAU,EACtB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,cAAc,CAAC,CAmBzB;AAED,wBAAsB,gCAAgC,CACpD,UAAU,EAAE,UAAU,EACtB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,cAAc,CAAC,CAIzB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Saves category data to the database, replacing all existing categories.
|
|
3
|
+
* @param categoriesData - Array of category objects with tag and PnL data
|
|
4
|
+
*/
|
|
5
|
+
export declare function saveCategories(categoriesData: any[]): Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves best and worst performing categories from the database.
|
|
8
|
+
* @returns Object with "best" and "worst" arrays of category records (top 20 each)
|
|
9
|
+
*/
|
|
10
|
+
export declare function getCategories(): Promise<{
|
|
11
|
+
best: {
|
|
12
|
+
tag: string;
|
|
13
|
+
pnl: number | null;
|
|
14
|
+
updatedAt: Date | null;
|
|
15
|
+
}[];
|
|
16
|
+
worst: {
|
|
17
|
+
tag: string;
|
|
18
|
+
pnl: number | null;
|
|
19
|
+
updatedAt: Date | null;
|
|
20
|
+
}[];
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Analyzes positions to calculate aggregated PnL by category tag.
|
|
24
|
+
* @param allPositions - Array of position objects with tags and PnL data
|
|
25
|
+
* @returns Object with "best" and "worst" arrays of category performance (top 20 each)
|
|
26
|
+
*/
|
|
27
|
+
export declare function analyzeCategories(allPositions: any[]): {
|
|
28
|
+
best: {
|
|
29
|
+
tag: any;
|
|
30
|
+
pnl: any;
|
|
31
|
+
}[];
|
|
32
|
+
worst: {
|
|
33
|
+
tag: any;
|
|
34
|
+
pnl: any;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=categories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../../src/prediction/analysis/categories.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAsB,cAAc,CAAC,cAAc,EAAE,GAAG,EAAE,iBAYzD;AAED;;;GAGG;AACH,wBAAsB,aAAa;;;;;;;;;;;GAclC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,GAAG,EAAE;;;;;;;;;EA+BpD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PriceMovement } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Detect price movements across all cached markets
|
|
4
|
+
* Uses batch queries for efficiency
|
|
5
|
+
*/
|
|
6
|
+
export declare function detectMovements(): Promise<PriceMovement[]>;
|
|
7
|
+
/**
|
|
8
|
+
* Check a specific market for price movements (for manual /test command)
|
|
9
|
+
*/
|
|
10
|
+
export declare function checkMarket(marketId: string): Promise<PriceMovement[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Format trigger type string for logging/storage
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatTriggerType(changePercent: number, windowMinutes: number): string;
|
|
15
|
+
//# sourceMappingURL=detector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../../../src/prediction/analysis/detector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,KAAK,EAAU,aAAa,EAAqB,MAAM,UAAU,CAAC;AAIzE;;;GAGG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAuIhE;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAkD5E;AAwDD;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACpB,MAAM,CAGR"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Enricher, GreeksMetrics } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Calculate all Greeks metrics for a signal
|
|
4
|
+
*/
|
|
5
|
+
export declare function calculateGreeks(currentPrice: number, tokenId: string, endDate: Date | null): Promise<GreeksMetrics>;
|
|
6
|
+
/**
|
|
7
|
+
* Greeks Enricher for the enrichment pipeline
|
|
8
|
+
* Calculates binary options-style Greeks for each signal
|
|
9
|
+
*/
|
|
10
|
+
export declare const greeksEnricher: Enricher;
|
|
11
|
+
//# sourceMappingURL=greeks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greeks.d.ts","sourceRoot":"","sources":["../../../src/prediction/analysis/greeks.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAU,aAAa,EAAE,MAAM,UAAU,CAAC;AAqMhE;;GAEG;AACH,wBAAsB,eAAe,CACnC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,IAAI,GAAG,IAAI,GACnB,OAAO,CAAC,aAAa,CAAC,CAuBxB;AAMD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,QAsC5B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculates price changes for a market based on its price history.
|
|
3
|
+
* @param tokenId - The token ID to get price history for
|
|
4
|
+
* @param currentPrice - The current price of the token
|
|
5
|
+
* @returns Object with daily, weekly, and monthly price changes (in percentage points, 0-100 scale)
|
|
6
|
+
*/
|
|
7
|
+
export declare function calculatePriceChanges(tokenId: string, currentPrice: number): Promise<{
|
|
8
|
+
daily: number | null;
|
|
9
|
+
weekly: number | null;
|
|
10
|
+
monthly: number | null;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=price-changes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"price-changes.d.ts","sourceRoot":"","sources":["../../../src/prediction/analysis/price-changes.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC;IACT,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC,CA+CD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface PolymarketHolder {
|
|
2
|
+
proxyWallet: string;
|
|
3
|
+
pseudonym?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
outcomeIndex: number;
|
|
7
|
+
asset?: string;
|
|
8
|
+
bio?: string;
|
|
9
|
+
profileImage?: string;
|
|
10
|
+
profileImageOptimized?: string;
|
|
11
|
+
displayUsernamePublic?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface PolymarketHoldersResponse {
|
|
14
|
+
token: string;
|
|
15
|
+
holders: PolymarketHolder[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Fetches top holders for a market from Polymarket Data API.
|
|
19
|
+
* @param conditionId - The condition ID of the market (0x-prefixed hex string)
|
|
20
|
+
* @param limit - Maximum holders per token (max 20)
|
|
21
|
+
* @returns Array of holders grouped by token (Yes/No outcomes)
|
|
22
|
+
*/
|
|
23
|
+
export declare function fetchMarketHolders(conditionId: string, limit?: number): Promise<PolymarketHoldersResponse[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Fetches the order book for a specific market from Polymarket Gamma API.
|
|
26
|
+
* @param marketId - The unique identifier of the market
|
|
27
|
+
* @returns Order book object with bids and asks, or null if fetch fails
|
|
28
|
+
*/
|
|
29
|
+
export declare function fetchMarketOrderBook(marketId: string): Promise<unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetches detailed information for a specific market from Polymarket Gamma API.
|
|
32
|
+
* @param marketId - The unique identifier of the market
|
|
33
|
+
* @returns Market details object, or null if fetch fails
|
|
34
|
+
*/
|
|
35
|
+
export declare function fetchMarketDetails(marketId: string): Promise<unknown>;
|
|
36
|
+
/**
|
|
37
|
+
* Fetch market summary analytics from Polymarket Analytics API
|
|
38
|
+
* Provides volume, liquidity, and open interest data for a specific event
|
|
39
|
+
*/
|
|
40
|
+
export declare function fetchMarketSummary(eventId: string): Promise<unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Fetch dashboard data from Polymarket Analytics API
|
|
43
|
+
* Provides charts, holder information, and historical data for a specific event
|
|
44
|
+
*/
|
|
45
|
+
export declare function fetchMarketsDashboard(eventId: string): Promise<unknown>;
|
|
46
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/prediction/api/analytics.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EACnB,KAAK,SAAK,GACT,OAAO,CAAC,yBAAyB,EAAE,CAAC,CA4BtC;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,oBAgB1D;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,oBAgBxD;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,oBAoBvD;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,MAAM,oBAoB1D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Market } from '../types';
|
|
2
|
+
export interface GammaMarketWithPrices {
|
|
3
|
+
market: Market;
|
|
4
|
+
yesPrice: number;
|
|
5
|
+
noPrice: number;
|
|
6
|
+
}
|
|
7
|
+
export interface BlocklistResult {
|
|
8
|
+
blocked: boolean;
|
|
9
|
+
reason?: "category" | "keyword";
|
|
10
|
+
matchedValue?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Check if a market should be blocked based on category or keywords
|
|
14
|
+
*/
|
|
15
|
+
export declare function isMarketBlocked(question: string, category: string, blocklistCategories: string[], blocklistKeywords: string[]): BlocklistResult;
|
|
16
|
+
/**
|
|
17
|
+
* Fetch all active events and their markets with prices
|
|
18
|
+
* Events contain the category info that markets lack
|
|
19
|
+
* Applies blocklist filtering if provided
|
|
20
|
+
*/
|
|
21
|
+
export declare function fetchActiveMarketsWithPrices(blocklistCategories?: string[], blocklistKeywords?: string[]): Promise<GammaMarketWithPrices[]>;
|
|
22
|
+
/**
|
|
23
|
+
* Fetch a single market by ID
|
|
24
|
+
*/
|
|
25
|
+
export declare function fetchMarket(marketId: string): Promise<Market | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Check if the Gamma API is responding
|
|
28
|
+
*/
|
|
29
|
+
export declare function checkGammaHealth(): Promise<boolean>;
|
|
30
|
+
//# sourceMappingURL=gamma.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gamma.d.ts","sourceRoot":"","sources":["../../../src/prediction/api/gamma.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,mBAAmB,EAAE,MAAM,EAAE,EAC7B,iBAAiB,EAAE,MAAM,EAAE,GAC1B,eAAe,CAkBjB;AAED;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,mBAAmB,GAAE,MAAM,EAAO,EAClC,iBAAiB,GAAE,MAAM,EAAO,GAC/B,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAmFlC;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAc1E;AAED;;GAEG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAUzD"}
|