@proton/wrap-constants 0.2.61 → 0.2.62
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/parsers/dex.d.ts +17 -0
- package/dist/wrap-constants.cjs.development.js +9 -0
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +9 -1
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/parsers/dex.ts +8 -0
package/dist/parsers/dex.d.ts
CHANGED
|
@@ -163,6 +163,23 @@ export declare const orderHistoryParser: z.ZodObject<{
|
|
|
163
163
|
trx_id: string;
|
|
164
164
|
}>;
|
|
165
165
|
export declare type OrderHistory = z.infer<typeof orderHistoryParser>;
|
|
166
|
+
export declare const getOpenOrdersParser: z.ZodObject<{
|
|
167
|
+
account: z.ZodString;
|
|
168
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
169
|
+
offset: z.ZodDefault<z.ZodString>;
|
|
170
|
+
limit: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
symbol?: string | undefined;
|
|
173
|
+
limit: string;
|
|
174
|
+
account: string;
|
|
175
|
+
offset: string;
|
|
176
|
+
}, {
|
|
177
|
+
symbol?: string | undefined;
|
|
178
|
+
limit?: string | undefined;
|
|
179
|
+
offset?: string | undefined;
|
|
180
|
+
account: string;
|
|
181
|
+
}>;
|
|
182
|
+
export declare type GetOpenOrders = z.infer<typeof getOpenOrdersParser>;
|
|
166
183
|
export declare const getOrderHistoryParser: z.ZodObject<{
|
|
167
184
|
account: z.ZodString;
|
|
168
185
|
symbol: z.ZodOptional<z.ZodString>;
|
|
@@ -1533,6 +1533,14 @@ var orderHistoryParser = /*#__PURE__*/z.object({
|
|
|
1533
1533
|
quantity_change: /*#__PURE__*/z.number(),
|
|
1534
1534
|
trx_id: /*#__PURE__*/z.string()
|
|
1535
1535
|
});
|
|
1536
|
+
var getOpenOrdersParser = /*#__PURE__*/z.object({
|
|
1537
|
+
account: /*#__PURE__*/z.string(),
|
|
1538
|
+
symbol: /*#__PURE__*/z.string().optional(),
|
|
1539
|
+
offset: /*#__PURE__*/z.string()["default"]("0"),
|
|
1540
|
+
limit: /*#__PURE__*/z.string()["default"]("100").refine(function (n) {
|
|
1541
|
+
return +n <= 250;
|
|
1542
|
+
}, 'Max limit is 250')
|
|
1543
|
+
});
|
|
1536
1544
|
var getOrderHistoryParser = /*#__PURE__*/z.object({
|
|
1537
1545
|
account: /*#__PURE__*/z.string(),
|
|
1538
1546
|
symbol: /*#__PURE__*/z.string().optional(),
|
|
@@ -2114,6 +2122,7 @@ exports.getLeaderboardResponseParser = getLeaderboardResponseParser;
|
|
|
2114
2122
|
exports.getMarketsResponseParser = getMarketsResponseParser;
|
|
2115
2123
|
exports.getOhlcvParser = getOhlcvParser;
|
|
2116
2124
|
exports.getOhlcvResponseParser = getOhlcvResponseParser;
|
|
2125
|
+
exports.getOpenOrdersParser = getOpenOrdersParser;
|
|
2117
2126
|
exports.getOrderHistoryParser = getOrderHistoryParser;
|
|
2118
2127
|
exports.getOrderHistoryResponseParser = getOrderHistoryResponseParser;
|
|
2119
2128
|
exports.getOrderParser = getOrderParser;
|