@pear-protocol/types 0.0.10 → 0.0.11
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 +1 -0
- package/dist/bundle.js +1 -0
- package/dist/leverage/index.d.ts +2 -0
- package/dist/leverage/index.js +2 -0
- package/dist/leverage/payloads.d.ts +15 -0
- package/dist/leverage/payloads.js +11 -0
- package/dist/leverage/response.d.ts +3 -0
- package/dist/leverage/response.js +5 -0
- package/package.json +1 -1
package/dist/bundle.d.ts
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MarginMode: z.ZodEnum<{
|
|
3
|
+
cross: "cross";
|
|
4
|
+
isolated: "isolated";
|
|
5
|
+
}>;
|
|
6
|
+
export type MarginMode = z.infer<typeof MarginMode>;
|
|
7
|
+
export declare const SetLeverage: z.ZodObject<{
|
|
8
|
+
symbol: z.ZodString;
|
|
9
|
+
leverage: z.ZodInt;
|
|
10
|
+
marginMode: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
cross: "cross";
|
|
12
|
+
isolated: "isolated";
|
|
13
|
+
}>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type SetLeverage = z.infer<typeof SetLeverage>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { InstrumentId } from '../instrument/entities';
|
|
3
|
+
|
|
4
|
+
const MarginMode = z.enum(["cross", "isolated"]);
|
|
5
|
+
const SetLeverage = z.object({
|
|
6
|
+
symbol: InstrumentId,
|
|
7
|
+
leverage: z.int().positive(),
|
|
8
|
+
marginMode: MarginMode.optional()
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { MarginMode, SetLeverage };
|