@agg-build/sdk 4.15.1 → 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 +14 -0
- package/dist/index.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -734,6 +734,16 @@ type VenueMarket = {
|
|
|
734
734
|
marketSubtype?: string | null | undefined;
|
|
735
735
|
/** Line value for spread/total markets (e.g., 2.5 for totals, 3 for spreads). */
|
|
736
736
|
lineValue?: number | null | undefined;
|
|
737
|
+
/** Per-market minimum order size in shares/contracts, where AGG ingests one:
|
|
738
|
+
* Polymarket (the market's own floor) and PRED (0.001); null elsewhere.
|
|
739
|
+
* POST /execution/limit-orders validates `sizeRaw` against it on Polymarket.
|
|
740
|
+
* `null` means no value was ingested — NOT that the market is unconstrained;
|
|
741
|
+
* other venues enforce floors this field does not carry. */
|
|
742
|
+
minOrderSize?: number | null | undefined;
|
|
743
|
+
/** Price increment from venue metadata — a seed, not a guarantee. Prefer the
|
|
744
|
+
* runtime-inferred `tick` from the orderbook endpoints when aligning a limit
|
|
745
|
+
* price: the live grid can be finer than this. */
|
|
746
|
+
tickSize?: number | null | undefined;
|
|
737
747
|
matchedVenueMarkets?: {
|
|
738
748
|
id: string;
|
|
739
749
|
venue: Venue;
|
|
@@ -3030,6 +3040,10 @@ interface PlaceOrderParams {
|
|
|
3030
3040
|
externalId: string;
|
|
3031
3041
|
/** Slippage cap in bps. Defaults to 500 (5%). Set explicitly on sells. */
|
|
3032
3042
|
slipCapBps?: number;
|
|
3043
|
+
/** Restrict funding to these chain IDs. Omit to allow every funded chain. */
|
|
3044
|
+
allowedSourceChainIds?: number[];
|
|
3045
|
+
/** USD budgets capped by refreshed wallet balances; omitted chains cannot fund. */
|
|
3046
|
+
chainBalances?: Record<string, number>;
|
|
3033
3047
|
}
|
|
3034
3048
|
interface PlaceOrderResponse {
|
|
3035
3049
|
orderId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -734,6 +734,16 @@ type VenueMarket = {
|
|
|
734
734
|
marketSubtype?: string | null | undefined;
|
|
735
735
|
/** Line value for spread/total markets (e.g., 2.5 for totals, 3 for spreads). */
|
|
736
736
|
lineValue?: number | null | undefined;
|
|
737
|
+
/** Per-market minimum order size in shares/contracts, where AGG ingests one:
|
|
738
|
+
* Polymarket (the market's own floor) and PRED (0.001); null elsewhere.
|
|
739
|
+
* POST /execution/limit-orders validates `sizeRaw` against it on Polymarket.
|
|
740
|
+
* `null` means no value was ingested — NOT that the market is unconstrained;
|
|
741
|
+
* other venues enforce floors this field does not carry. */
|
|
742
|
+
minOrderSize?: number | null | undefined;
|
|
743
|
+
/** Price increment from venue metadata — a seed, not a guarantee. Prefer the
|
|
744
|
+
* runtime-inferred `tick` from the orderbook endpoints when aligning a limit
|
|
745
|
+
* price: the live grid can be finer than this. */
|
|
746
|
+
tickSize?: number | null | undefined;
|
|
737
747
|
matchedVenueMarkets?: {
|
|
738
748
|
id: string;
|
|
739
749
|
venue: Venue;
|
|
@@ -3030,6 +3040,10 @@ interface PlaceOrderParams {
|
|
|
3030
3040
|
externalId: string;
|
|
3031
3041
|
/** Slippage cap in bps. Defaults to 500 (5%). Set explicitly on sells. */
|
|
3032
3042
|
slipCapBps?: number;
|
|
3043
|
+
/** Restrict funding to these chain IDs. Omit to allow every funded chain. */
|
|
3044
|
+
allowedSourceChainIds?: number[];
|
|
3045
|
+
/** USD budgets capped by refreshed wallet balances; omitted chains cannot fund. */
|
|
3046
|
+
chainBalances?: Record<string, number>;
|
|
3033
3047
|
}
|
|
3034
3048
|
interface PlaceOrderResponse {
|
|
3035
3049
|
orderId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.16.0",
|
|
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",
|