@agg-build/hooks 4.11.0 → 4.16.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/dist/index.d.mts CHANGED
@@ -309,6 +309,8 @@ type VenueMarket = {
309
309
  title?: string | null | undefined;
310
310
  externalIdentifier?: string | null | undefined;
311
311
  winner?: boolean | null | undefined;
312
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
313
+ payoutPerShare?: number | null | undefined;
312
314
  /** Counterpart outcomes on matched sibling markets — only populated
313
315
  * on the parent (queried) market's outcomes. Each entry is a
314
316
  * `{ venueMarketId, venueMarketOutcomeId }` ref into the same
@@ -348,6 +350,16 @@ type VenueMarket = {
348
350
  marketSubtype?: string | null | undefined;
349
351
  /** Line value for spread/total markets (e.g., 2.5 for totals, 3 for spreads). */
350
352
  lineValue?: number | null | undefined;
353
+ /** Per-market minimum order size in shares/contracts, where AGG ingests one:
354
+ * Polymarket (the market's own floor) and PRED (0.001); null elsewhere.
355
+ * POST /execution/limit-orders validates `sizeRaw` against it on Polymarket.
356
+ * `null` means no value was ingested — NOT that the market is unconstrained;
357
+ * other venues enforce floors this field does not carry. */
358
+ minOrderSize?: number | null | undefined;
359
+ /** Price increment from venue metadata — a seed, not a guarantee. Prefer the
360
+ * runtime-inferred `tick` from the orderbook endpoints when aligning a limit
361
+ * price: the live grid can be finer than this. */
362
+ tickSize?: number | null | undefined;
351
363
  matchedVenueMarkets?: {
352
364
  id: string;
353
365
  venue: Venue;
@@ -365,6 +377,8 @@ type VenueMarket = {
365
377
  venueMarketId: string;
366
378
  label: string;
367
379
  winner?: boolean | null | undefined;
380
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
381
+ payoutPerShare?: number | null | undefined;
368
382
  }[] | undefined;
369
383
  volume?: number | null | undefined;
370
384
  venueEvent?: {
@@ -475,6 +489,8 @@ type VenueMarketOutcome = {
475
489
  title?: string | null | undefined;
476
490
  externalIdentifier?: string | null | undefined;
477
491
  winner?: boolean | null | undefined;
492
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
493
+ payoutPerShare?: number | null | undefined;
478
494
  /** Counterpart outcomes on matched sibling markets — only populated on
479
495
  * the parent (queried) market's outcomes. */
480
496
  matchedVenueMarketOutcomes?: MatchedVenueMarketOutcomeRef[];
package/dist/index.d.ts CHANGED
@@ -309,6 +309,8 @@ type VenueMarket = {
309
309
  title?: string | null | undefined;
310
310
  externalIdentifier?: string | null | undefined;
311
311
  winner?: boolean | null | undefined;
312
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
313
+ payoutPerShare?: number | null | undefined;
312
314
  /** Counterpart outcomes on matched sibling markets — only populated
313
315
  * on the parent (queried) market's outcomes. Each entry is a
314
316
  * `{ venueMarketId, venueMarketOutcomeId }` ref into the same
@@ -348,6 +350,16 @@ type VenueMarket = {
348
350
  marketSubtype?: string | null | undefined;
349
351
  /** Line value for spread/total markets (e.g., 2.5 for totals, 3 for spreads). */
350
352
  lineValue?: number | null | undefined;
353
+ /** Per-market minimum order size in shares/contracts, where AGG ingests one:
354
+ * Polymarket (the market's own floor) and PRED (0.001); null elsewhere.
355
+ * POST /execution/limit-orders validates `sizeRaw` against it on Polymarket.
356
+ * `null` means no value was ingested — NOT that the market is unconstrained;
357
+ * other venues enforce floors this field does not carry. */
358
+ minOrderSize?: number | null | undefined;
359
+ /** Price increment from venue metadata — a seed, not a guarantee. Prefer the
360
+ * runtime-inferred `tick` from the orderbook endpoints when aligning a limit
361
+ * price: the live grid can be finer than this. */
362
+ tickSize?: number | null | undefined;
351
363
  matchedVenueMarkets?: {
352
364
  id: string;
353
365
  venue: Venue;
@@ -365,6 +377,8 @@ type VenueMarket = {
365
377
  venueMarketId: string;
366
378
  label: string;
367
379
  winner?: boolean | null | undefined;
380
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
381
+ payoutPerShare?: number | null | undefined;
368
382
  }[] | undefined;
369
383
  volume?: number | null | undefined;
370
384
  venueEvent?: {
@@ -475,6 +489,8 @@ type VenueMarketOutcome = {
475
489
  title?: string | null | undefined;
476
490
  externalIdentifier?: string | null | undefined;
477
491
  winner?: boolean | null | undefined;
492
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
493
+ payoutPerShare?: number | null | undefined;
478
494
  /** Counterpart outcomes on matched sibling markets — only populated on
479
495
  * the parent (queried) market's outcomes. */
480
496
  matchedVenueMarketOutcomes?: MatchedVenueMarketOutcomeRef[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/hooks",
3
- "version": "4.11.0",
3
+ "version": "4.16.0",
4
4
  "description": "React hooks and providers for the AGG prediction market aggregator. Wraps @agg-build/sdk with TanStack Query, shared session state, and live WebSocket data.",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -83,7 +83,7 @@
83
83
  "react": "^18.0.0 || ^19.0.0",
84
84
  "viem": "^2.0.0",
85
85
  "wagmi": "^3.0.0 || ^2.0.0",
86
- "@agg-build/sdk": "^4.11.0"
86
+ "@agg-build/sdk": "^4.16.0"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@solana/wallet-adapter-react": {