@agg-build/sdk 2.8.1 → 2.8.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/dist/index.d.mts +21 -2
- package/dist/index.d.ts +21 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2611,8 +2611,10 @@ interface CreateBalanceRefillPolicyParams {
|
|
|
2611
2611
|
targetTokenSymbol?: "USDC";
|
|
2612
2612
|
minimumRaw: string;
|
|
2613
2613
|
refillAmountRaw: string;
|
|
2614
|
-
|
|
2615
|
-
|
|
2614
|
+
/** Optional daily refill limit. Defaults to $250 in 6-decimal USD units. */
|
|
2615
|
+
dailyCapRaw?: string;
|
|
2616
|
+
/** Optional per-refill fee limit. Defaults to $2 in 6-decimal USD units. */
|
|
2617
|
+
maxFeeRaw?: string;
|
|
2616
2618
|
}
|
|
2617
2619
|
interface UpdateBalanceRefillPolicyParams {
|
|
2618
2620
|
minimumRaw?: string;
|
|
@@ -3330,6 +3332,17 @@ interface SmartRouteSettlementPlan {
|
|
|
3330
3332
|
totalSellShares: number;
|
|
3331
3333
|
redeemLegs: SmartRouteSettlementLeg[];
|
|
3332
3334
|
}
|
|
3335
|
+
/** Slippage metrics for the route. Mirrors `SmartRouteResponseTB.slippage`. */
|
|
3336
|
+
interface SmartRouteSlippage {
|
|
3337
|
+
/** Volume-weighted average price. */
|
|
3338
|
+
vwap: number;
|
|
3339
|
+
/** Reference midpoint used by the optimizer. */
|
|
3340
|
+
refMidpoint: number;
|
|
3341
|
+
/** Route slippage = max(0, VWAP - refMidpoint). */
|
|
3342
|
+
slippage: number;
|
|
3343
|
+
/** Slippage in basis points relative to ref midpoint. */
|
|
3344
|
+
slippageBps: number;
|
|
3345
|
+
}
|
|
3333
3346
|
interface SmartRouteResponse {
|
|
3334
3347
|
quoteId: string;
|
|
3335
3348
|
venueMarketOutcomeId: string;
|
|
@@ -3363,6 +3376,12 @@ interface SmartRouteResponse {
|
|
|
3363
3376
|
venueSoloQuotes?: VenueSoloQuote[];
|
|
3364
3377
|
allocations?: SmartRouteAllocation[];
|
|
3365
3378
|
bridgeSteps?: SmartRouteBridgeStep[];
|
|
3379
|
+
/**
|
|
3380
|
+
* Route slippage metrics. Present on the wire (`SmartRouteResponseTB`) but
|
|
3381
|
+
* missing from this mirror until now — `@agg-build/hooks` already reads
|
|
3382
|
+
* `slippage.slippageBps` to flag thin liquidity.
|
|
3383
|
+
*/
|
|
3384
|
+
slippage?: SmartRouteSlippage;
|
|
3366
3385
|
/** Estimated payout if the outcome wins (= totalFilled shares × $1). */
|
|
3367
3386
|
estimatedPayout?: number;
|
|
3368
3387
|
/** Total cost including all fees (rawExecCost + venueFees + bridgeFees +
|
package/dist/index.d.ts
CHANGED
|
@@ -2611,8 +2611,10 @@ interface CreateBalanceRefillPolicyParams {
|
|
|
2611
2611
|
targetTokenSymbol?: "USDC";
|
|
2612
2612
|
minimumRaw: string;
|
|
2613
2613
|
refillAmountRaw: string;
|
|
2614
|
-
|
|
2615
|
-
|
|
2614
|
+
/** Optional daily refill limit. Defaults to $250 in 6-decimal USD units. */
|
|
2615
|
+
dailyCapRaw?: string;
|
|
2616
|
+
/** Optional per-refill fee limit. Defaults to $2 in 6-decimal USD units. */
|
|
2617
|
+
maxFeeRaw?: string;
|
|
2616
2618
|
}
|
|
2617
2619
|
interface UpdateBalanceRefillPolicyParams {
|
|
2618
2620
|
minimumRaw?: string;
|
|
@@ -3330,6 +3332,17 @@ interface SmartRouteSettlementPlan {
|
|
|
3330
3332
|
totalSellShares: number;
|
|
3331
3333
|
redeemLegs: SmartRouteSettlementLeg[];
|
|
3332
3334
|
}
|
|
3335
|
+
/** Slippage metrics for the route. Mirrors `SmartRouteResponseTB.slippage`. */
|
|
3336
|
+
interface SmartRouteSlippage {
|
|
3337
|
+
/** Volume-weighted average price. */
|
|
3338
|
+
vwap: number;
|
|
3339
|
+
/** Reference midpoint used by the optimizer. */
|
|
3340
|
+
refMidpoint: number;
|
|
3341
|
+
/** Route slippage = max(0, VWAP - refMidpoint). */
|
|
3342
|
+
slippage: number;
|
|
3343
|
+
/** Slippage in basis points relative to ref midpoint. */
|
|
3344
|
+
slippageBps: number;
|
|
3345
|
+
}
|
|
3333
3346
|
interface SmartRouteResponse {
|
|
3334
3347
|
quoteId: string;
|
|
3335
3348
|
venueMarketOutcomeId: string;
|
|
@@ -3363,6 +3376,12 @@ interface SmartRouteResponse {
|
|
|
3363
3376
|
venueSoloQuotes?: VenueSoloQuote[];
|
|
3364
3377
|
allocations?: SmartRouteAllocation[];
|
|
3365
3378
|
bridgeSteps?: SmartRouteBridgeStep[];
|
|
3379
|
+
/**
|
|
3380
|
+
* Route slippage metrics. Present on the wire (`SmartRouteResponseTB`) but
|
|
3381
|
+
* missing from this mirror until now — `@agg-build/hooks` already reads
|
|
3382
|
+
* `slippage.slippageBps` to flag thin liquidity.
|
|
3383
|
+
*/
|
|
3384
|
+
slippage?: SmartRouteSlippage;
|
|
3366
3385
|
/** Estimated payout if the outcome wins (= totalFilled shares × $1). */
|
|
3367
3386
|
estimatedPayout?: number;
|
|
3368
3387
|
/** Total cost including all fees (rawExecCost + venueFees + bridgeFees +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/sdk",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "Vanilla TypeScript client for the AGG prediction market aggregator (auth, markets, orderbooks, charts, trading, managed execution, WebSockets). Works in browsers, Node.js, and React Native.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|