@pear-protocol/types 1.3.0 → 1.5.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/bundle.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './fill';
7
7
  export * from './funding';
8
8
  export * from './instrument';
9
9
  export * from './instrument-precision';
10
+ export * from './ladder';
10
11
  export * from './leverage';
11
12
  export * from './market';
12
13
  export * from './misc';
@@ -16,6 +17,7 @@ export * from './portfolio';
16
17
  export * from './position';
17
18
  export * from './price';
18
19
  export * from './rebalance';
20
+ export * from './saved-baskets';
19
21
  export * from './schedule';
20
22
  export * from './statistics';
21
23
  export * from './sync';
package/dist/bundle.js CHANGED
@@ -7,6 +7,7 @@ export * from './fill';
7
7
  export * from './funding';
8
8
  export * from './instrument';
9
9
  export * from './instrument-precision';
10
+ export * from './ladder';
10
11
  export * from './leverage';
11
12
  export * from './market';
12
13
  export * from './misc';
@@ -16,6 +17,7 @@ export * from './portfolio';
16
17
  export * from './position';
17
18
  export * from './price';
18
19
  export * from './rebalance';
20
+ export * from './saved-baskets';
19
21
  export * from './schedule';
20
22
  export * from './statistics';
21
23
  export * from './sync';
@@ -6,3 +6,5 @@ export declare const Side: z.ZodEnum<{
6
6
  BUY: "BUY";
7
7
  SELL: "SELL";
8
8
  }>;
9
+ /** Basket-leg weight: fraction of total gross notional; a basket's legs sum to 1. */
10
+ export declare const AssetWeight: z.ZodNumber;
@@ -6,5 +6,6 @@ const Leverage = z.int({ message: "Leverage must be an integer" }).positive({ me
6
6
  const Side = z.enum(["BUY", "SELL"], {
7
7
  message: "Side must be either BUY or SELL"
8
8
  });
9
+ const AssetWeight = z.number().positive({ message: "Weight must be greater than 0" }).max(1, { message: "Weight must be less than 1" });
9
10
 
10
- export { Leverage, Side, SignedDecimalString, UnsignedDecimalString };
11
+ export { AssetWeight, Leverage, Side, SignedDecimalString, UnsignedDecimalString };