@0xinsider/sdk 0.24.0 → 0.25.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/README.md +17 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/provenance.d.ts +2 -2
- package/dist/provenance.d.ts.map +1 -1
- package/dist/provenance.js +3 -3
- package/dist/provenance.js.map +1 -1
- package/dist/schema.d.ts +73 -13
- package/dist/schema.d.ts.map +1 -1
- package/dist/webhooks.d.ts +131 -16
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +22 -6
- package/dist/webhooks.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,6 +91,13 @@ for the caller that asserts the shape itself.
|
|
|
91
91
|
push, so a contract change that nobody regenerated fails CI rather than
|
|
92
92
|
shipping as a stale type.
|
|
93
93
|
|
|
94
|
+
SDK 0.25.0 adds `PnlCorrection`: `pnl.correction` on a `Trader`, and `pnl_correction` on a `LeaderboardEntry` and a `TrendingWallet`. It is present only when 0xinsider corrects Polymarket's P&L for neg-risk conversions Polymarket misbooks, in either direction: cost charged to inactive placeholder outcomes and never booked as a loss, or shares a conversion minted that Polymarket's records leave out. `markets_measured` says how many of the wallet's converted markets the amount sums; `markets_excluded`, when present, counts markets left at Polymarket's figure because shares moved in or out by direct transfer. A correction is published only once every converted market of the wallet is checked; until then `pnl.correction_pending` is `true` on a `Trader`. The body's own P&L fields keep Polymarket's figures; `correction.net_total` is the total the 0xinsider profile shows and `correction.realized` is what the grade uses.
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
const trader = await client.getTrader("swisstony");
|
|
98
|
+
const total = trader.data.pnl.correction?.net_total ?? trader.data.pnl.net_total;
|
|
99
|
+
```
|
|
100
|
+
|
|
94
101
|
## Combos
|
|
95
102
|
|
|
96
103
|
`client.combos.fills()` returns observed Polymarket combo fills with their legs, wallet context, and coverage. `client.combos.summary()` reads the live combo count, and `client.combos.get(conditionId)` reads one combo's fills and lifecycle. These reads require an active Pro or Max credential.
|
|
@@ -695,20 +702,26 @@ if (!ok) return res.status(400).end();
|
|
|
695
702
|
|
|
696
703
|
const event = parseWebhookEvent(rawBody);
|
|
697
704
|
switch (event.type) {
|
|
698
|
-
case "
|
|
705
|
+
case "large_trade_inserted_v2": // Pro and Max; one trade per delivery
|
|
706
|
+
console.log(event.data.wallet, event.data.side, event.data.size_usd);
|
|
707
|
+
break;
|
|
708
|
+
case "wallet_grade_changed": // Pro and Max
|
|
699
709
|
console.log(event.data.new_grade);
|
|
700
710
|
break;
|
|
701
|
-
case "suspicious_trade_flagged": // Pro
|
|
711
|
+
case "suspicious_trade_flagged": // Pro and Max; `insider_radar_flag_raised` is
|
|
702
712
|
// the same event under its old spelling
|
|
703
713
|
console.log(event.data.suspicion_score);
|
|
704
714
|
break;
|
|
705
|
-
case "
|
|
715
|
+
case "large_trades_inserted": // Pro and Max; a count, no trade.
|
|
716
|
+
// `whale_trades_inserted` is its old spelling
|
|
706
717
|
console.log(event.data.count);
|
|
707
718
|
break;
|
|
708
719
|
}
|
|
709
720
|
```
|
|
710
721
|
|
|
711
|
-
`verifySignature` enforces a 300-second replay tolerance (`toleranceSeconds` overrides it: a payload exactly that many seconds from `nowSeconds` still passes, one second further fails, and `0` accepts only the current second) and uses a constant-time compare, mirroring the backend exactly. It returns `false` on a bad signature or a malformed timestamp (never throws for those); it throws only on receiver misconfiguration: an empty secret, or a `toleranceSeconds` that is `NaN`, infinite or negative, each of which would otherwise silently turn the replay window off. Treat a `false` as the sender's problem (answer 4xx) and a throw as your own bug (log it). Typed payloads are exported for
|
|
722
|
+
`verifySignature` enforces a 300-second replay tolerance (`toleranceSeconds` overrides it: a payload exactly that many seconds from `nowSeconds` still passes, one second further fails, and `0` accepts only the current second) and uses a constant-time compare, mirroring the backend exactly. It returns `false` on a bad signature or a malformed timestamp (never throws for those); it throws only on receiver misconfiguration: an empty secret, or a `toleranceSeconds` that is `NaN`, infinite or negative, each of which would otherwise silently turn the replay window off. Treat a `false` as the sender's problem (answer 4xx) and a throw as your own bug (log it). Typed payloads are exported for all 16 event types in `WEBHOOK_EVENT_TYPES`. The SDK compiles only while that list, the typed payloads and the OpenAPI `WebhookEventType` enum name the same events, so a `case` on any delivered `type` narrows `event.data`. Five events deliver only to API keys on an active Pro or Max subscription: `large_trade_inserted_v2`, `large_trades_inserted`, `wallet_grade_changed`, `suspicious_trade_flagged`, and `sharp_money_flow_detected`. Four events keep a deprecated second spelling: `whale_trades_inserted`, `whale_trader_synced`, `insider_radar_flag_raised`, and `smart_money_flow_detected`. Either spelling subscribes, and an endpoint receives its deliveries under the spelling it registered, so switch on the spelling you used.
|
|
723
|
+
|
|
724
|
+
SDK 0.25.0 types `large_trade_inserted_v2` (`LargeTradeInsertedV2Event`), which the API has offered since September 23, 2026 and the list did not name. Its `data` is the trade: `event_id`, `whale_alert_id`, `condition_id`, `trader_id`, `wallet`, `grade` (`null` for an ungraded wallet), `size_usd`, `shares`, `price`, `side`, `outcome_index`, `traded_at`, and `platform`. `size_usd`, `shares` and `price` are decimal strings, and the envelope's `created_at` is the trade's fill time. `large_trades_inserted` carries a count and no trade. The same release adds `LargeTradesInsertedEvent` and `TraderSyncedEvent` for the two canonical spellings a `case` could not name before, and exports `ClientResponseMeta`, the type of `meta` on `ApiEnvelope` and `ApiListEnvelope`.
|
|
712
725
|
|
|
713
726
|
### Staged webhook secret rotation
|
|
714
727
|
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
export { assessDataQuality } from "./data-quality.js";
|
|
16
16
|
export type { AssessDataQualityOptions, DataQualityAssessment, DataQualityFailure, } from "./data-quality.js";
|
|
17
17
|
export { API_CLIENT_OPERATIONS, BATCH_TRADER_EXPANSIONS, DEFAULT_BASE_URL, IDEMPOTENT_WRITE_OPERATIONS, MCP_METHODS, READ_ONLY_POST_OPERATIONS, CONVERGENT_WRITE_OPERATIONS, REDIRECT_OPERATIONS, UNSUPPORTED_OPERATIONS, retryEligibility, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, SANDBOX_BASE_URL, assertTrustedBaseUrl, resolveApiUrl, composeSignals, GRADES, LEADERBOARD_STRATEGIES, OxinsiderApiClient, interpolatePath, isApiNotModifiedResponse, isListEnvelope, } from "./client.js";
|
|
18
|
-
export type { ApiClientMethod, ApiClientOperation, ApiClientOptions, ApiClientResponse, ApiEnvelope, ApiListEnvelope, ApiNotModifiedResponse, ApiOperationId, ApiQueryValue, ApiRedirectOperation, ApiRequestOptions, ApiUnsupportedOperation, AuthMode, BatchGetTradersOptions, BatchTraderExpand, CategorySkillStatus, CategorySkillStatusCounts, ClientMeta, ComboFillsParams, EdgeHunterParams, EdgeHunterSelectionParams, EdgeHunterBoardParams, EdgeHunterSignalsParams, EdgeHunterObservationsParams, EdgeHunterAdvancedParams, EdgeHunterBoardResult, EdgeHunterSignalsResult, EdgeHunterObservationsResult, EdgeHunterAdvancedResult, EdgeHunterCollection, ConvenienceOptions, EnvelopeOperationId, ExploreMarketsParams, Game, GamesListParams, Grade, IdempotentWriteOperationId, InsiderRadarListParams, JsonRpcOperationId, LargePositionsListParams, ListOperationId, ListParams, McpJsonRpcRequest, McpJsonRpcResponse, McpMethod, McpOptions, McpResult, OperationEnvelope, OperationItem, OperationMeta, OperationOptionsArgs, OperationRequestOptions, OperationRequiresOptions, OptionalInputOperationId, RuntimeOperationId, RuntimeListOperationId, OperationResult, PositionsListParams, ResponseKind, RetryEligibility, SseOperationId, TextOperationId, TraderExportDownload, TraderExportDownloadIntegrity, TraderExportDownloadOptions, TraderExportDownloadTarget, SharpMoneyFlowsParams, PickQualifyingExpert, SuspiciousTradesListParams, TennisTour, LargeTradeHistoryParams, WhaleTradeHistoryParams, LeaderboardListParams, LeaderboardStrategy, TrendingWalletsParams, LargeTradeListParams, WhaleTradeListParams, } from "./client.js";
|
|
18
|
+
export type { ApiClientMethod, ApiClientOperation, ApiClientOptions, ApiClientResponse, ApiEnvelope, ApiListEnvelope, ApiNotModifiedResponse, ApiOperationId, ApiQueryValue, ApiRedirectOperation, ApiRequestOptions, ApiUnsupportedOperation, AuthMode, BatchGetTradersOptions, BatchTraderExpand, CategorySkillStatus, CategorySkillStatusCounts, ClientMeta, ClientResponseMeta, ComboFillsParams, EdgeHunterParams, EdgeHunterSelectionParams, EdgeHunterBoardParams, EdgeHunterSignalsParams, EdgeHunterObservationsParams, EdgeHunterAdvancedParams, EdgeHunterBoardResult, EdgeHunterSignalsResult, EdgeHunterObservationsResult, EdgeHunterAdvancedResult, EdgeHunterCollection, ConvenienceOptions, EnvelopeOperationId, ExploreMarketsParams, Game, GamesListParams, Grade, IdempotentWriteOperationId, InsiderRadarListParams, JsonRpcOperationId, LargePositionsListParams, ListOperationId, ListParams, McpJsonRpcRequest, McpJsonRpcResponse, McpMethod, McpOptions, McpResult, OperationEnvelope, OperationItem, OperationMeta, OperationOptionsArgs, OperationRequestOptions, OperationRequiresOptions, OptionalInputOperationId, RuntimeOperationId, RuntimeListOperationId, OperationResult, PositionsListParams, ResponseKind, RetryEligibility, SseOperationId, TextOperationId, TraderExportDownload, TraderExportDownloadIntegrity, TraderExportDownloadOptions, TraderExportDownloadTarget, SharpMoneyFlowsParams, PickQualifyingExpert, SuspiciousTradesListParams, TennisTour, LargeTradeHistoryParams, WhaleTradeHistoryParams, LeaderboardListParams, LeaderboardStrategy, TrendingWalletsParams, LargeTradeListParams, WhaleTradeListParams, } from "./client.js";
|
|
19
19
|
export { API_ERROR_CODES, API_ERROR_REASONS, AccountLockedError, BadRequestError, EndpointRetiredError, CursorExpiredError, ExportIntegrityError, ForbiddenError, IdempotencyInProgressError, InternalServerError, InvalidApiKeyError, InvalidResponseError, MaxPlanRequiredError, NotFoundError, OxinsiderApiError, PickNotReleasedError, RateLimitUnavailableError, RequestTimeoutError, ResponseBodyReadError, ServerTimeoutError, RateLimitedError, ReadModelWarmingError, DatabaseUnavailableError, RequestAccountingUnavailableError, FreshnessCeilingUnsatisfiedError, SandboxApiKeyError, ApiKeyInQueryError, SubscriptionRequiredError, TraderNotTrackedError, UnknownEndpointError, UnknownQueryParameterError, WebhookDeliveryInProgressError, errorFromResponse, extractApiErrorBody, } from "./errors.js";
|
|
20
20
|
export type { ApiErrorCode, ApiErrorMeta, ApiErrorTransportMetadata, ApiErrorReason, FreshnessFailure, } from "./errors.js";
|
|
21
21
|
export { CURSOR_HISTORY_LIMIT, PaginationError, collect, paginate, paginatePages, paginationResumePoint, } from "./pagination.js";
|
|
@@ -24,9 +24,9 @@ export { MAX_TIMER_DELAY_MS, RETRY_AFTER_CEILING_MS, parseRetryAfter, } from "./
|
|
|
24
24
|
export { DEFAULT_MAX_HANDLER_RETRIES, DEFAULT_MAX_STREAM_FRAME_BYTES, DEFAULT_MAX_STREAM_ERROR_BODY_BYTES, DEFAULT_MAX_STREAM_RECONNECTS, DEFAULT_MAX_STREAM_RETRY_AFTER_MS, StreamHandlerFailedError, StreamProtocolError, StreamRefusalBodyError, StreamReconnectsExhaustedError, StreamRetryDeferredError, consumeStream, consumeStreamCheckpointed, decodeStreamFrame, isEventStreamMediaType, parseSseFrame, streamFeed, streamFeedResilient, } from "./stream.js";
|
|
25
25
|
export type { CheckpointedStreamHandlers, CheckpointedStreamOptions, FeedEnvelope, ParsedSseFrame, ResilientStreamOptions, ResyncMarker, StreamCheckpoint, StreamCheckpointReason, StreamEvent, StreamFilters, StreamHandlerFailure, StreamHandlerStage, StreamOptions, StreamProtocolErrorReason, StreamRefusalBodyErrorReason, } from "./stream.js";
|
|
26
26
|
export { SIGNATURE_HEADER, SIGNATURE_TOLERANCE_SECONDS, TIMESTAMP_HEADER, WEBHOOK_EVENT_TYPES, computeSignature, parseWebhookEvent, verifySignature, } from "./webhooks.js";
|
|
27
|
-
export type { InsiderRadarFlagRaisedData, InsiderRadarFlagRaisedEvent, ExportJobCancelledData, ExportJobCancelledEvent, ExportJobExpiredData, ExportJobExpiredEvent, ExportJobFailedData, ExportJobFailedEvent, ExportJobReadyData, ExportJobReadyEvent, LargePositionsUpdatedData, LargePositionsUpdatedEvent, LiveSportsScoreEntry, LiveSportsUpdatedData, LiveSportsUpdatedEvent, SharpMoneyFlowDetectedData, SharpMoneyFlowDetectedEvent, SmartMoneyFlowDetectedData, SmartMoneyFlowDetectedEvent, SuspiciousTradeFlaggedData, SuspiciousTradeFlaggedEvent, VerifySignatureInput, WalletGradeChangedData, WalletGradeChangedEvent, WebhookEvent, WebhookEventEnvelope, WhaleTradesInsertedData, WhaleTradesInsertedEvent, WhaleTraderSyncedData, WhaleTraderSyncedEvent, } from "./webhooks.js";
|
|
27
|
+
export type { InsiderRadarFlagRaisedData, InsiderRadarFlagRaisedEvent, ExportJobCancelledData, ExportJobCancelledEvent, ExportJobExpiredData, ExportJobExpiredEvent, ExportJobFailedData, ExportJobFailedEvent, ExportJobReadyData, ExportJobReadyEvent, LargePositionsUpdatedData, LargePositionsUpdatedEvent, LargeTradeInsertedV2Data, LargeTradeInsertedV2Event, LargeTradesInsertedData, LargeTradesInsertedEvent, LiveSportsScoreEntry, LiveSportsUpdatedData, LiveSportsUpdatedEvent, SharpMoneyFlowDetectedData, SharpMoneyFlowDetectedEvent, SmartMoneyFlowDetectedData, SmartMoneyFlowDetectedEvent, SuspiciousTradeFlaggedData, SuspiciousTradeFlaggedEvent, TraderSyncedData, TraderSyncedEvent, VerifySignatureInput, WalletGradeChangedData, WalletGradeChangedEvent, WebhookEvent, WebhookEventEnvelope, WhaleTradesInsertedData, WhaleTradesInsertedEvent, WhaleTraderSyncedData, WhaleTraderSyncedEvent, } from "./webhooks.js";
|
|
28
28
|
export { APP_COMMIT, APP_REPOSITORY, APP_SPEC_PATH, OPENAPI_SHA256, OPENAPI_SOURCE, OPENAPI_VERSION, OPERATION_COUNT, } from "./provenance.js";
|
|
29
|
-
export type { AccountIdentity, AgentRegistration, ApiDiscovery, ApiError, ApiErrorBody, BatchMarketFlowItem, BatchRateLimitMeta, BatchResponseMeta, BatchTraderItem, Candle, CategorySkillModelReadiness, CategorySkillV2, Combo, ComboCoverage, ComboCoverageCursor, ComboDetail, ComboFill, ComboFillsResponse, ComboLeg, ComboLegMarket, ComboLifecycleStats, ComboLiveCount, ComboResponse, ComboTotals, ComboWindowStats, CombosSummary, CombosSummaryResponse, ContentSearchResult, CounterpartyAnalysis, CounterpartyExecution, CounterpartyMakerPage, CounterpartyMatchBreakdown, CounterpartyParticipant, CreateWebhookRequest, CreateWebhookVerificationAttemptRequest, DataQuality, DataQualityGroup, EdgeHunterBoard, EdgeHunterBoardResponse, EdgeHunterCategorySkill, EdgeHunterFunnelReport, EdgeHunterMarketContext, EdgeHunterObservation, EdgeHunterObservationCoverage, EdgeHunterObservationDegradationReason, EdgeHunterObservationTerminalReason, EdgeHunterObservationsResponse, EdgeHunterOutcome, EdgeHunterParticipant, EdgeHunterPrice, EdgeHunterRankedSignal, EdgeHunterRow, EdgeHunterSelection, EdgeHunterSignal, EdgeHunterSignalsResponse, EdgeHunterSportFunnelReport, EventReplayEvent, EventReplayFreshness, EventReplayMeta, EventReplaySource, ExactDecimal, ExploreEntry, ExploreFacetValue, ExploreFacets, ExploreGroup, ExploreMarket, ExploreStandalone, ExportCompleteness, ExportCounts, ExportSourceRange, ExportVolumeReconciliation, GameCompetitor, GameCoverage, GameFreshness, GameMarket, GameMarketPriceBindingProvenance, GameMarketPriceCompetitor, GameMarketPriceIncomplete, GameMarketPriceInvalid, GameMarketPricePaired, GameMarketPrices, GameMarketProviderPrices, GameStatus, GamesCoverage, HolderCategoryEvidence, LargeExportPolicy, LargePosition, LargeTrade, LargeTradeDetail, LargeTradeHistoryMeta, LargeTradeSubscriptionFilters, LeaderboardEntry, MarketCandles, MarketFlow, MarketHolder, MarketHoldersMarket, MarketHoldersScan, MarketHoldersSideGrades, MarketHoldersTotals, MarketSearchResult, MarketSnapshot, MarketSnapshotFreshness, MarketSnapshotTopOfBook, MarketSnapshotTrust, McpJsonRpcError, OperationBody, OperationData, OperationPath, OperationQuery, OperationResponse, OutcomeCandles, PickHolder, PickLeadBacker, PickOfTheDay, PickOfTheDayArchive, PickOfTheDayArchiveDay, PickOfTheDayArchiveEntry, PickOfTheDayCommitmentPayload, PickOfTheDayCommitmentPayloadV1, PickOfTheDayCommitmentPayloadV2, PickOfTheDayHitRate, PickOfTheDayLedger, PickOfTheDayLedgerEntry, PickOfTheDayLedgerOpenedEntry, PickOfTheDayLedgerSealedEntry, PickOfTheDayLedgerUncommittedEntry, PickOfTheDayNoEntitledPicks, PickOfTheDayUncommittedPayload, PickSportsContext, PickSportsTeam, PlatformCapabilities, PlatformCapabilityStatus, Platforms, Position, PositionExact, PositionTimelineEvent, PotdEntryAuthorization, ProofPendingPickSlot, ReportPayload, ReportReconciliation, ReportSnapshot, ReportSourceRange, ResponseMeta, ScheduledPickSlot, ScoreCell, ScoreFormat, SmartMoneyFlowMarket, SnapshotCompleteness, SnapshotState, SuspiciousTrade, TennisPoints, TennisRanking, Trader, TraderCategoryRecord, TraderCategoryRecords, TraderContext, TraderEsportsGameRecord, TraderExportArtifactManifest, TraderExportCategoryWatermark, TraderExportGeneration, TraderExportJob, TraderExportPnlWatermark, TraderExportPositionWatermark, TraderExportSnapshot, TraderExportSourceWatermarks, TraderExportTradeWatermark, TraderGradeAt, TraderPnl, TraderPnlExact, TraderStatsExact, TraderTrust, TrendingWallet, TrustCompleteness, TrustFreshness, TrustMetadata, TrustReconciliation, TrustSource, UpdateWebhookRequest, Usage, VerifyWebhookRequest, WebhookDelivery, WebhookEndpoint, WebhookEventDescriptor, WebhookEventType, WebhookRetryPolicy, WebhookSecretRotation, WebhookStatus, WebhookVerification, WebhookVerificationAttempt, WhaleDatasetArtifactManifest, WhaleDatasetContinuation, WhaleDatasetFilters, WhaleDatasetGeneration, WhaleDatasetJob, WhaleDatasetTrade, } from "./schema.js";
|
|
29
|
+
export type { AccountIdentity, AgentRegistration, ApiDiscovery, ApiError, ApiErrorBody, BatchMarketFlowItem, BatchRateLimitMeta, BatchResponseMeta, BatchTraderItem, Candle, CategorySkillModelReadiness, CategorySkillV2, Combo, ComboCoverage, ComboCoverageCursor, ComboDetail, ComboFill, ComboFillsResponse, ComboLeg, ComboLegMarket, ComboLifecycleStats, ComboLiveCount, ComboResponse, ComboTotals, ComboWindowStats, CombosSummary, CombosSummaryResponse, ContentSearchResult, CounterpartyAnalysis, CounterpartyExecution, CounterpartyMakerPage, CounterpartyMatchBreakdown, CounterpartyParticipant, CreateWebhookRequest, CreateWebhookVerificationAttemptRequest, DataQuality, DataQualityGroup, EdgeHunterBoard, EdgeHunterBoardResponse, EdgeHunterCategorySkill, EdgeHunterFunnelReport, EdgeHunterMarketContext, EdgeHunterObservation, EdgeHunterObservationCoverage, EdgeHunterObservationDegradationReason, EdgeHunterObservationTerminalReason, EdgeHunterObservationsResponse, EdgeHunterOutcome, EdgeHunterParticipant, EdgeHunterPrice, EdgeHunterRankedSignal, EdgeHunterRow, EdgeHunterSelection, EdgeHunterSignal, EdgeHunterSignalsResponse, EdgeHunterSportFunnelReport, EventReplayEvent, EventReplayFreshness, EventReplayMeta, EventReplaySource, ExactDecimal, ExploreEntry, ExploreFacetValue, ExploreFacets, ExploreGroup, ExploreMarket, ExploreStandalone, ExportCompleteness, ExportCounts, ExportSourceRange, ExportVolumeReconciliation, GameCompetitor, GameCoverage, GameFreshness, GameMarket, GameMarketPriceBindingProvenance, GameMarketPriceCompetitor, GameMarketPriceIncomplete, GameMarketPriceInvalid, GameMarketPricePaired, GameMarketPrices, GameMarketProviderPrices, GameStatus, GamesCoverage, HolderCategoryEvidence, LargeExportPolicy, LargePosition, LargeTrade, LargeTradeDetail, LargeTradeHistoryMeta, LargeTradeSubscriptionFilters, LeaderboardEntry, MarketCandles, MarketFlow, MarketHolder, MarketHoldersMarket, MarketHoldersScan, MarketHoldersSideGrades, MarketHoldersTotals, MarketSearchResult, MarketSnapshot, MarketSnapshotFreshness, MarketSnapshotTopOfBook, MarketSnapshotTrust, McpJsonRpcError, OperationBody, OperationData, OperationPath, OperationQuery, OperationResponse, OutcomeCandles, PickHolder, PickLeadBacker, PickOfTheDay, PickOfTheDayArchive, PickOfTheDayArchiveDay, PickOfTheDayArchiveEntry, PickOfTheDayCommitmentPayload, PickOfTheDayCommitmentPayloadV1, PickOfTheDayCommitmentPayloadV2, PickOfTheDayHitRate, PickOfTheDayLedger, PickOfTheDayLedgerEntry, PickOfTheDayLedgerOpenedEntry, PickOfTheDayLedgerSealedEntry, PickOfTheDayLedgerUncommittedEntry, PickOfTheDayNoEntitledPicks, PickOfTheDayUncommittedPayload, PickSportsContext, PickSportsTeam, PlatformCapabilities, PlatformCapabilityStatus, Platforms, PnlCorrection, Position, PositionExact, PositionTimelineEvent, PotdEntryAuthorization, ProofPendingPickSlot, ReportPayload, ReportReconciliation, ReportSnapshot, ReportSourceRange, ResponseMeta, ScheduledPickSlot, ScoreCell, ScoreFormat, SmartMoneyFlowMarket, SnapshotCompleteness, SnapshotState, SuspiciousTrade, TennisPoints, TennisRanking, Trader, TraderCategoryRecord, TraderCategoryRecords, TraderContext, TraderEsportsGameRecord, TraderExportArtifactManifest, TraderExportCategoryWatermark, TraderExportGeneration, TraderExportJob, TraderExportPnlWatermark, TraderExportPositionWatermark, TraderExportSnapshot, TraderExportSourceWatermarks, TraderExportTradeWatermark, TraderGradeAt, TraderPnl, TraderPnlExact, TraderStatsExact, TraderTrust, TrendingWallet, TrustCompleteness, TrustFreshness, TrustMetadata, TrustReconciliation, TrustSource, UpdateWebhookRequest, Usage, VerifyWebhookRequest, WebhookDelivery, WebhookEndpoint, WebhookEventDescriptor, WebhookEventType, WebhookRetryPolicy, WebhookSecretRotation, WebhookStatus, WebhookVerification, WebhookVerificationAttempt, WhaleDatasetArtifactManifest, WhaleDatasetContinuation, WhaleDatasetFilters, WhaleDatasetGeneration, WhaleDatasetJob, WhaleDatasetTrade, } from "./schema.js";
|
|
30
30
|
/**
|
|
31
31
|
* @deprecated Use `SuspiciousTrade`. The OpenAPI component schema `RadarFlag`
|
|
32
32
|
* was renamed to `SuspiciousTrade` in #16301 and the generated types no longer
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EACV,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACX,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,MAAM,EACN,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,cAAc,GACf,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,QAAQ,EACR,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,IAAI,EACJ,eAAe,EACf,KAAK,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,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nB,sBAAsB,EACtB,eAAe,EACf,iBAAiB,GAClB,MAAM,aAAa,CAAC;AAGrB;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,aAAa,EAAE,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACnE,mDAAmD;AACnD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC;AACrC,4DAA4D;AAC5D,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AACvD,mDAAmD;AACnD,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC;AACpC,yDAAyD;AACzD,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAChD,8DAA8D;AAC9D,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,qEAAqE;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAOtD,uCAAuC;AACvC,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACX,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,MAAM,EACN,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,cAAc,GACf,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;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9B,mCAAmC,EACnC,6BAA6B,EAC7B,iCAAiC,EACjC,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,8BAA8B,EAC9B,wBAAwB,EACxB,aAAa,EACb,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,mBAAmB,GACpB,MAAM,aAAa,CAAC;AAmBrB,WAAW;AACX,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,GAChB,MAAM,eAAe,CAAC;AAwCvB,iFAAiF;AACjF,gFAAgF;AAChF,6BAA6B;AAC7B,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,GAChB,MAAM,iBAAiB,CAAC"}
|
package/dist/provenance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const OPENAPI_SOURCE = "0xinsider/
|
|
2
|
-
export declare const OPENAPI_SHA256 = "
|
|
1
|
+
export declare const OPENAPI_SOURCE = "https://0xinsider.com/api/v1/openapi.json";
|
|
2
|
+
export declare const OPENAPI_SHA256 = "b92cc0518366df32ae243755b490489a8156356b7214710a8f98612a0b8afc18";
|
|
3
3
|
export declare const OPENAPI_VERSION = "1.0.0";
|
|
4
4
|
export declare const OPERATION_COUNT = 94;
|
|
5
5
|
export declare const APP_REPOSITORY = "0xinsider/0xinsider";
|
package/dist/provenance.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,8CAA8C,CAAC;AAC1E,eAAO,MAAM,cAAc,qEAAqE,CAAC;AACjG,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,aAAa,mCAAmC,CAAC;AAC9D,eAAO,MAAM,UAAU,EAAE,MAAM,GAAG,IAAiD,CAAC"}
|
package/dist/provenance.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
// 0xinsider/0xinsider commit that last changed web/public/api/v1/openapi.json
|
|
6
6
|
// when it could be resolved, else null. Compare OPENAPI_SHA256 with the live
|
|
7
7
|
// document to see whether a release is behind the API.
|
|
8
|
-
export const OPENAPI_SOURCE = "0xinsider/
|
|
9
|
-
export const OPENAPI_SHA256 = "
|
|
8
|
+
export const OPENAPI_SOURCE = "https://0xinsider.com/api/v1/openapi.json";
|
|
9
|
+
export const OPENAPI_SHA256 = "b92cc0518366df32ae243755b490489a8156356b7214710a8f98612a0b8afc18";
|
|
10
10
|
export const OPENAPI_VERSION = "1.0.0";
|
|
11
11
|
export const OPERATION_COUNT = 94;
|
|
12
12
|
export const APP_REPOSITORY = "0xinsider/0xinsider";
|
|
13
13
|
export const APP_SPEC_PATH = "web/public/api/v1/openapi.json";
|
|
14
|
-
export const APP_COMMIT = "
|
|
14
|
+
export const APP_COMMIT = "c0db0c25a4ec958e420eb8ff522f1eb1e454db34";
|
|
15
15
|
//# sourceMappingURL=provenance.js.map
|
package/dist/provenance.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,8EAA8E;AAC9E,6EAA6E;AAC7E,uDAAuD;AAEvD,MAAM,CAAC,MAAM,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,8EAA8E;AAC9E,6EAA6E;AAC7E,uDAAuD;AAEvD,MAAM,CAAC,MAAM,cAAc,GAAG,2CAA2C,CAAC;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG,kEAAkE,CAAC;AACjG,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAClC,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,gCAAgC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAkB,0CAA0C,CAAC"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -1373,7 +1373,7 @@ export type LargePosition = {
|
|
|
1373
1373
|
username?: string;
|
|
1374
1374
|
grade?: "S" | "A" | "B" | "C" | "D" | "F";
|
|
1375
1375
|
win_rate?: number;
|
|
1376
|
-
/**
|
|
1376
|
+
/** Polymarket's net total P&L for the wallet in USD: native Polymarket position P&L across all markets, fees included, plus credited maker and taker rebates. The 0xinsider profile's Total P&L is this figure unless the wallet has a published correction for neg-risk conversions, which GET /api/v1/trader/{address} serves as pnl.correction; the profile then shows pnl.correction.net_total. Distinct from this position's position_unrealized_pnl. Omitted when the wallet has no native accounting snapshot. */
|
|
1377
1377
|
pnl?: number;
|
|
1378
1378
|
markets_traded?: number;
|
|
1379
1379
|
};
|
|
@@ -1481,6 +1481,8 @@ export type LeaderboardEntry = {
|
|
|
1481
1481
|
pnl?: number;
|
|
1482
1482
|
/** Native realized P&L plus credited maker and taker rebates in USD, with fees already included. The exact numeric value is truncated toward zero to cents before JSON conversion. Omitted when the wallet has no native snapshot or the snapshot has no net realized value; never filled from another P&L basis. */
|
|
1483
1483
|
realized_pnl?: number;
|
|
1484
|
+
/** The 0xinsider correction to Polymarket's P&L for neg-risk conversions. Present only when one is published; realized_pnl keeps Polymarket's own figure and pnl_correction.realized adds the amount to it. The grade and the ranking use the corrected figure. net_total is omitted here. */
|
|
1485
|
+
pnl_correction?: PnlCorrection;
|
|
1484
1486
|
/** Full-history both-sides USD cash volume from a verified Polymarket user-volume observation. Omitted without coverage. */
|
|
1485
1487
|
volume?: number;
|
|
1486
1488
|
markets_traded?: number;
|
|
@@ -1686,7 +1688,15 @@ export type MarketSnapshot = {
|
|
|
1686
1688
|
image: string | null;
|
|
1687
1689
|
/** Polymarket series slug from the canonical identity row, null when unavailable. A sports series identifies a league and must not be used as a per-matchup grouping key. */
|
|
1688
1690
|
series_slug: string | null;
|
|
1691
|
+
/**
|
|
1692
|
+
* Always null. Deprecated (#24169): 0xinsider has never stored a value for this field. The key stays on the wire so existing clients keep parsing; do not read it.
|
|
1693
|
+
* @deprecated
|
|
1694
|
+
*/
|
|
1689
1695
|
market_type: string | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* Always null. Deprecated (#24169): 0xinsider stores no value for this field on a Polymarket market. The key stays on the wire so existing clients keep parsing; do not read it. market.status and market.resolved_at say whether the market has closed or resolved.
|
|
1698
|
+
* @deprecated
|
|
1699
|
+
*/
|
|
1690
1700
|
market_result: string | null;
|
|
1691
1701
|
created_at: string | null;
|
|
1692
1702
|
end_date: string | null;
|
|
@@ -1996,7 +2006,10 @@ export type PickOfTheDay = {
|
|
|
1996
2006
|
publication_order?: number;
|
|
1997
2007
|
/** Viewer-independent free selection designation. New rows store it explicitly; historic null storage uses the original free slot. */
|
|
1998
2008
|
is_free_selection?: boolean;
|
|
1999
|
-
/**
|
|
2009
|
+
/**
|
|
2010
|
+
* Deprecated (#24157): always null. No replacement lineage was ever recorded in this field; the key stays so existing V1 clients keep parsing. Identify a pick by pick_id.
|
|
2011
|
+
* @deprecated
|
|
2012
|
+
*/
|
|
2000
2013
|
supersedes_pick_id: string | null;
|
|
2001
2014
|
/** Optional full-only lead wallet publication facts. Omitted on legacy picks or when the recorded evidence is unavailable. */
|
|
2002
2015
|
lead_backer?: PickLeadBacker;
|
|
@@ -2096,7 +2109,10 @@ export type PickOfTheDayArchiveEntry = {
|
|
|
2096
2109
|
publication_order: number;
|
|
2097
2110
|
/** Viewer-independent free selection designation. New rows store it explicitly; historic null storage uses the original free slot. */
|
|
2098
2111
|
is_free_selection: boolean;
|
|
2099
|
-
/**
|
|
2112
|
+
/**
|
|
2113
|
+
* Deprecated (#24157): always null. No replacement lineage was ever recorded in this field; the key stays so existing V1 clients keep parsing. Identify a pick by pick_id.
|
|
2114
|
+
* @deprecated
|
|
2115
|
+
*/
|
|
2100
2116
|
supersedes_pick_id: string | null;
|
|
2101
2117
|
};
|
|
2102
2118
|
/** Select using the entry commitment_version, never implicit payload shape. All historic v1 hashes remain unchanged. */
|
|
@@ -2267,7 +2283,10 @@ export type PickOfTheDayLedgerOpenedEntry = {
|
|
|
2267
2283
|
publication_order: number;
|
|
2268
2284
|
/** Viewer-independent free selection designation. New rows store it explicitly; historic null storage uses the original free slot. */
|
|
2269
2285
|
is_free_selection: boolean;
|
|
2270
|
-
/**
|
|
2286
|
+
/**
|
|
2287
|
+
* Deprecated (#24157): always null. No replacement lineage was ever recorded in this field; the key stays so existing V1 clients keep parsing. Identify a pick by pick_id.
|
|
2288
|
+
* @deprecated
|
|
2289
|
+
*/
|
|
2271
2290
|
supersedes_pick_id: string | null;
|
|
2272
2291
|
/** Explicit proof provenance: 1 retains historic eight-field canonical JSON; 2 binds stable pick_id and version without pick_rank. */
|
|
2273
2292
|
commitment_version: 1 | 2;
|
|
@@ -2296,7 +2315,10 @@ export type PickOfTheDayLedgerSealedEntry = {
|
|
|
2296
2315
|
publication_order: number;
|
|
2297
2316
|
/** Viewer-independent free selection designation. New rows store it explicitly; historic null storage uses the original free slot. */
|
|
2298
2317
|
is_free_selection: boolean;
|
|
2299
|
-
/**
|
|
2318
|
+
/**
|
|
2319
|
+
* Deprecated (#24157): always null. No replacement lineage was ever recorded in this field; the key stays so existing V1 clients keep parsing. Identify a pick by pick_id.
|
|
2320
|
+
* @deprecated
|
|
2321
|
+
*/
|
|
2300
2322
|
supersedes_pick_id: string | null;
|
|
2301
2323
|
/** Explicit proof provenance: 1 retains historic eight-field canonical JSON; 2 binds stable pick_id and version without pick_rank. */
|
|
2302
2324
|
commitment_version: 1 | 2;
|
|
@@ -2331,7 +2353,10 @@ export type PickOfTheDayLedgerUncommittedEntry = {
|
|
|
2331
2353
|
publication_order: number;
|
|
2332
2354
|
/** Viewer-independent free selection designation. New rows store it explicitly; historic null storage uses the original free slot. */
|
|
2333
2355
|
is_free_selection: boolean;
|
|
2334
|
-
/**
|
|
2356
|
+
/**
|
|
2357
|
+
* Deprecated (#24157): always null. No replacement lineage was ever recorded in this field; the key stays so existing V1 clients keep parsing. Identify a pick by pick_id.
|
|
2358
|
+
* @deprecated
|
|
2359
|
+
*/
|
|
2335
2360
|
supersedes_pick_id: string | null;
|
|
2336
2361
|
};
|
|
2337
2362
|
/** A successful current-day entitlement response when only unauthorized ranks have published. It carries an empty pick set, identity-free locked ranks and an upgrade message. Selection IDs, game identity, prices and unauthorized clocks are absent. Any scheduled or proof-pending rows are entitled rows. */
|
|
@@ -2355,7 +2380,10 @@ export type PickOfTheDayNoEntitledPicks = {
|
|
|
2355
2380
|
scheduled_picks?: ScheduledPickSlot[];
|
|
2356
2381
|
/** Entitled published picks whose holder proof is unreadable, ordered by rank. Unauthorized ranks appear only in locked_picks and cannot trigger proof warming. Read retry_at for the next read. */
|
|
2357
2382
|
proof_pending_picks?: ProofPendingPickSlot[];
|
|
2358
|
-
/**
|
|
2383
|
+
/**
|
|
2384
|
+
* Deprecated (#24157): always null, as on every Pick of the Day shape.
|
|
2385
|
+
* @deprecated
|
|
2386
|
+
*/
|
|
2359
2387
|
supersedes_pick_id: null;
|
|
2360
2388
|
};
|
|
2361
2389
|
/** A settled uncommitted pick's market, side and price. The same eight fields as PickOfTheDayCommitmentPayload, in the same key order, so a settled pick's side and price sit under payload whatever the entry's state. It is NOT a commitment: no hash was taken over it before the game, and it proves nothing about when the pick was made. */
|
|
@@ -2451,6 +2479,23 @@ export type Platforms = {
|
|
|
2451
2479
|
polymarket: PlatformCapabilities;
|
|
2452
2480
|
};
|
|
2453
2481
|
};
|
|
2482
|
+
/** A derived 0xinsider correction to Polymarket's P&L, never a Polymarket value. Polymarket misbooks neg-risk conversions, in both directions: it puts cost on placeholder YES outcomes minted by a conversion and never books it as a loss (negative amount), and its position records leave out shares the wallet really got, such as YES minted by a conversion, so it books no P&L on them (positive amount). Per neg-risk market the wallet converted in, 0xinsider measures Polymarket's own activity cash against the sum of its position P&L, and sums the difference over every measured market whose shares did not move by direct transfer: transferred shares have no activity row, so such a market keeps Polymarket's figure and is counted in markets_excluded. It is published once every neg-risk market the wallet converted in is measured and checked for transfers, and stays as last published until then (on the trader body, pnl.correction_pending says so); a sum under $1 either way publishes nothing. The body's own P&L fields keep Polymarket's figures; this object adds the amount and the corrected figures. Money is truncated toward zero to cents. */
|
|
2483
|
+
export type PnlCorrection = {
|
|
2484
|
+
/** The correction method. */
|
|
2485
|
+
basis: "neg_risk_conversion_v1";
|
|
2486
|
+
/** The correction in USD. Negative when Polymarket overstates the wallet. */
|
|
2487
|
+
amount: number;
|
|
2488
|
+
/** Polymarket's net realized P&L plus amount: the figure 0xinsider grades on. Omitted when Polymarket's figure is. */
|
|
2489
|
+
realized?: number;
|
|
2490
|
+
/** Polymarket's net total P&L plus amount: the 0xinsider profile's Total P&L. Omitted when Polymarket's figure is, and on leaderboard entries. */
|
|
2491
|
+
net_total?: number;
|
|
2492
|
+
/** The newest measurement among the measured markets. */
|
|
2493
|
+
as_of: string;
|
|
2494
|
+
/** Neg-risk markets whose measurement amount sums. */
|
|
2495
|
+
markets_measured: number;
|
|
2496
|
+
/** Measured neg-risk markets left out because shares moved in or out of the wallet by direct transfer; they keep Polymarket's figure. Omitted when none. */
|
|
2497
|
+
markets_excluded?: number;
|
|
2498
|
+
};
|
|
2454
2499
|
export type Position = {
|
|
2455
2500
|
/** Composite prefixed ID `pos_<wallet>:<condition_id>:<outcome_index>`. */
|
|
2456
2501
|
id: string;
|
|
@@ -2487,11 +2532,12 @@ export type Position = {
|
|
|
2487
2532
|
grade?: "S" | "A" | "B" | "C" | "D" | "F";
|
|
2488
2533
|
/** Win rate as a ratio from 0 to 1 (0.62 means 62%), the same scale as stats.win_rate on GET /api/v1/trader/{address}. Absent when unknown. */
|
|
2489
2534
|
win_rate?: number;
|
|
2490
|
-
/**
|
|
2535
|
+
/** Polymarket's net total P&L for the wallet in USD: native Polymarket position P&L across all markets, fees included, plus credited maker and taker rebates (trader_trading_pnl.net_total_pnl). The 0xinsider profile's Total P&L is this figure unless the wallet has a published correction for neg-risk conversions, which GET /api/v1/trader/{address} serves as pnl.correction; the profile then shows pnl.correction.net_total. Not the Polymarket leaderboard figure, which GET /api/v1/trader/{address} still serves as pnl.total. Omitted when the wallet has no native accounting snapshot; the leaderboard figure is never substituted. */
|
|
2491
2536
|
pnl?: number;
|
|
2492
2537
|
markets?: number;
|
|
2538
|
+
/** Days since the wallet's first-seen time. For a wallet 0xinsider first recorded on or after March 21, 2026, that is when 0xinsider recorded it. For a wallet recorded earlier, it is usually the wallet's first Polymarket activity, so the age can run to years. It is not the wallet's on-chain age or the time of its first trade. Absent when the first-seen time is unknown. */
|
|
2493
2539
|
wallet_age_days?: number;
|
|
2494
|
-
/** True when 0xinsider first recorded the wallet
|
|
2540
|
+
/** True when wallet_age_days is under the new-wallet threshold (30 days), which means 0xinsider first recorded the wallet in the last 30 days. False when wallet_age_days is absent. This public V1 field is first-seen recency, not the wallet's on-chain age. */
|
|
2495
2541
|
is_new_wallet: boolean;
|
|
2496
2542
|
};
|
|
2497
2543
|
market: {
|
|
@@ -2584,7 +2630,10 @@ export type ProofPendingPickSlot = {
|
|
|
2584
2630
|
publication_order: number;
|
|
2585
2631
|
/** Viewer-independent free selection designation. New rows store it explicitly; historic null storage uses the original free slot. */
|
|
2586
2632
|
is_free_selection: boolean;
|
|
2587
|
-
/**
|
|
2633
|
+
/**
|
|
2634
|
+
* Deprecated (#24157): always null. No replacement lineage was ever recorded in this field; the key stays so existing V1 clients keep parsing. Identify a pick by pick_id.
|
|
2635
|
+
* @deprecated
|
|
2636
|
+
*/
|
|
2588
2637
|
supersedes_pick_id: string | null;
|
|
2589
2638
|
};
|
|
2590
2639
|
export type ReportPayload = {
|
|
@@ -2732,7 +2781,10 @@ export type ScheduledPickSlot = {
|
|
|
2732
2781
|
publication_order: number;
|
|
2733
2782
|
/** Viewer-independent free selection designation. New rows store it explicitly; historic null storage uses the original free slot. */
|
|
2734
2783
|
is_free_selection: boolean;
|
|
2735
|
-
/**
|
|
2784
|
+
/**
|
|
2785
|
+
* Deprecated (#24157): always null. No replacement lineage was ever recorded in this field; the key stays so existing V1 clients keep parsing. Identify a pick by pick_id.
|
|
2786
|
+
* @deprecated
|
|
2787
|
+
*/
|
|
2736
2788
|
supersedes_pick_id: string | null;
|
|
2737
2789
|
};
|
|
2738
2790
|
/** One side's score in a single set. The verbatim provider text stays on the team's `score` string; this is the parsed form. */
|
|
@@ -2894,8 +2946,12 @@ export type Trader = {
|
|
|
2894
2946
|
pnl: {
|
|
2895
2947
|
/** Polymarket's all-time leaderboard P&L in USD, from Polymarket's latest observation of this wallet on its all-time leaderboard (dated by the leaderboard_pnl data_quality group). Omitted when that leaderboard has no current observation ranking the wallet; 0xinsider requests one, and never serves an older stored figure in its place. Kept for provider parity and back-compat. Not the profile's Total P&L and not realized plus unrealized: it can differ from net_total by a wide margin. Read net_total for the figure the 0xinsider profile shows. */
|
|
2896
2948
|
total?: number;
|
|
2897
|
-
/**
|
|
2949
|
+
/** Polymarket's net total P&L in USD: native Polymarket position P&L, with fees already included, plus credited maker and taker rebates (trader_trading_pnl.net_total_pnl). Truncated toward zero to cents before conversion to a JSON number. Omitted when the wallet has no native accounting snapshot; pnl.total is never substituted. The 0xinsider profile's Total P&L is this figure unless pnl.correction is present, then pnl.correction.net_total. */
|
|
2898
2950
|
net_total?: number;
|
|
2951
|
+
/** The 0xinsider correction to Polymarket's P&L for neg-risk conversions. Present only when one is published; pnl.net_total and pnl.realized keep Polymarket's own figures, and correction.net_total and correction.realized add the amount to them. */
|
|
2952
|
+
correction?: PnlCorrection;
|
|
2953
|
+
/** true while 0xinsider is still checking some of the wallet's converted neg-risk markets (not yet measured, measured and not yet checked for transfers, or its latest reads keep failing), so the correction may change, or arrive where none is published yet. Omitted otherwise. */
|
|
2954
|
+
correction_pending?: boolean;
|
|
2899
2955
|
/** For pnl.realized, expand=trust marks a matching native accounting snapshot as computed: native Polymarket realized P&L plus credited maker and taker rebates, with fees already included. The exact numeric value is truncated toward zero to cents before conversion to a JSON number. Without a matching native accounting snapshot, pnl.realized is omitted and its trust metadata is unavailable. Raw total P&L is never substituted for realized P&L. */
|
|
2900
2956
|
realized?: number;
|
|
2901
2957
|
unrealized?: number;
|
|
@@ -3313,6 +3369,8 @@ export type TraderTrust = {
|
|
|
3313
3369
|
total_pnl: TrustMetadata;
|
|
3314
3370
|
realized_pnl: TrustMetadata;
|
|
3315
3371
|
net_total_pnl: TrustMetadata;
|
|
3372
|
+
/** Present only with pnl.correction: a computed value owned by trader_pnl_corrections, dated by the newest measurement behind it. */
|
|
3373
|
+
pnl_correction?: TrustMetadata;
|
|
3316
3374
|
unrealized_pnl: TrustMetadata;
|
|
3317
3375
|
markets_traded: TrustMetadata;
|
|
3318
3376
|
win_rate: TrustMetadata;
|
|
@@ -3357,8 +3415,10 @@ export type TrendingWallet = {
|
|
|
3357
3415
|
grade?: "S" | "A" | "B" | "C" | "D" | "F";
|
|
3358
3416
|
/** Hot-streak tier (trailing-7d cross-sectional percentile). Omitted when there is no recent activity. */
|
|
3359
3417
|
streak_tier?: "hot" | "rising" | "neutral" | "cooling" | "cold";
|
|
3360
|
-
/**
|
|
3418
|
+
/** Polymarket's net total P&L for the wallet in USD: native Polymarket position P&L across all markets, fees included, plus credited maker and taker rebates (trader_trading_pnl.net_total_pnl). The 0xinsider profile's Total P&L is this figure unless pnl_correction is present, then pnl_correction.net_total. Context only: it does not affect the ranking, which follows trending_pnl_usd. Omitted when the wallet is not in the 0xinsider database or has no native accounting snapshot; the Polymarket leaderboard all-time figure is never substituted. */
|
|
3361
3419
|
all_time_pnl_usd?: number;
|
|
3420
|
+
/** The 0xinsider correction to Polymarket's P&L for neg-risk conversions. Present only when one is published; all_time_pnl_usd keeps Polymarket's own figure and pnl_correction.net_total is the profile's Total P&L. */
|
|
3421
|
+
pnl_correction?: PnlCorrection;
|
|
3362
3422
|
all_time_score?: number;
|
|
3363
3423
|
last_synced?: string;
|
|
3364
3424
|
/** Shape-only daily P&L sparkline across the window, derived from Polymarket's documented user-pnl cumulative curve (GET /v2/user-pnl) converted to per-day deltas. It conveys the trend of the curve only and is NOT guaranteed to sum to trending_pnl_usd, which is the canonical leaderboard total. */
|