@sperax/tool-hunch-aggregator
v0.2.1
Published
Prediction-market aggregation — normalizes, classifies, and matches markets across venues
Maintainers
Readme
@sperax/tool-hunch-aggregator
Install
npm install @sperax/tool-hunch-aggregator@sperax/tool-hunch-aggregator
Prediction-market aggregation — normalizes, classifies, and matches markets across venues
Usage
Source-first workspace package — there is no build step. TypeScript resolves it through
workspace:*, so importing it is all that is required:
import { AggregatorRepo, applyEventAggregates, AUTO_CONFIRM_THRESHOLD } from '@sperax/tool-hunch-aggregator';Exports
@sperax/tool-hunch-aggregator
everything from ./types · AggregatorRepo · applyEventAggregates · AUTO_CONFIRM_THRESHOLD · computeEventAggregates · EmbeddingCache · EmbeddingClient · matchMarkets · matchScore · normalizeKalshiMarket · normalizeLimitlessMarket · normalizePolymarketMarket · RawKalshiMarket · RawLimitlessMarket · RawPolymarketMarket · recomputeAggregates · REVIEW_THRESHOLD · runClassify · runMatch · searchMarkets
@sperax/tool-hunch-aggregator/aggregate
applyEventAggregates · bestNoAcross · BestVenueQuote · bestYesAcross · bestYesVenue · computeBlendedChange · computeEventAggregates · EventAggregates · sumLiquidity · sumOpenInterest · sumVolume24h · sumVolumeTotal
@sperax/tool-hunch-aggregator/classifier
extractEntities · extractTags · ExtractTagsOptions · mapVenueCategories · mapVenueCategory · ParsedTitle · parseTitle · TagLlmClient
@sperax/tool-hunch-aggregator/matcher
AUTO_CONFIRM_THRESHOLD · blendScore · cacheKey · categoryMatch · cosineSimilarity · EmbeddingCache · EmbeddingClient · embeddingCosine · embedTitle · EmbedTitleOptions · entityOverlap · expiryProximity · jaccard · MatcherDeps · matchMarkets · MatchResult · matchScore · MatchScoreResult · outcomeOverlap · REVIEW_THRESHOLD · ReviewQueueAdapter · WEIGHTS
@sperax/tool-hunch-aggregator/normalizer
canonicalMarketId · computeMidpoint · normalizeKalshiMarket · normalizeLimitlessMarket · normalizePolymarketMarket · RawKalshiMarket · RawLimitlessMarket · RawPolymarketMarket · slugify · toIsoDate · toProbability · toUsd
@sperax/tool-hunch-aggregator/repo
AggregatorRepo
@sperax/tool-hunch-aggregator/search
search
@sperax/tool-hunch-aggregator/types
CanonicalEvent · CanonicalMarket · CanonicalOutcome · Category · MarketMatch · MarketStatus · MatchSignals · ReviewQueueEntry · SearchFilters · SortSpec · VenueKey
@sperax/tool-hunch-aggregator/workers
recomputeAggregates · RecomputeOptions · RecomputeResult · runClassify · RunClassifyOptions · RunClassifyResult · runMatch · RunMatchOptions · RunMatchResult
Development
Run this package's tests:
bunx vitest run --silent='passed-only' packages/builtin-tool-hunch-aggregatorSource: packages/builtin-tool-hunch-aggregator
Part of SperaxOS — the open-source AI agent workspace for DeFi. See CONTRIBUTING.md before opening a pull request.
License
builtin-tool-hunch-aggregator is released under the Apache-2.0 license.
