@proton/wrap-constants 0.2.80 → 0.2.82

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.
@@ -37,10 +37,9 @@ export type GetOHLCVResponse = z.infer<typeof getOhlcvResponseParser>;
37
37
  * Order History
38
38
  */
39
39
  export const orderHistoryParser = z.object({
40
- seq: z.number(),
41
- block_num: z.number(),
40
+ block_num: z.string(),
42
41
  block_time: z.string(),
43
- order_id: z.number(),
42
+ order_id: z.string(),
44
43
  market_id: z.number(),
45
44
  quantity_init: z.number().optional(),
46
45
  quantity_curr: z.number(),
@@ -52,10 +51,11 @@ export const orderHistoryParser = z.object({
52
51
  fill_type: z.number(),
53
52
  status: z.string(),
54
53
  quantity_change: z.number(),
55
- trx_id: z.string(),
56
54
  filled_total: z.number().optional(),
57
55
  filled_amount: z.number().optional(),
58
- filled_fee: z.number().optional()
56
+ filled_fee: z.number().optional(),
57
+ seq: z.string(),
58
+ trx_id: z.string(),
59
59
  });
60
60
  export type OrderHistory = z.infer<typeof orderHistoryParser>;
61
61
 
@@ -160,13 +160,14 @@ export type GetDepthResponse = z.infer<typeof getDepthResponseParser>;
160
160
  */
161
161
  export const dailyParser = z.object({
162
162
  market_id: z.number(),
163
- first: z.number(),
164
- last: z.number(),
165
- bid: z.number(),
166
- ask: z.number(),
167
- change_percentage_24hr: z.number(),
163
+ symbol: z.string(),
164
+ open: z.number(),
168
165
  high: z.number(),
169
166
  low: z.number(),
167
+ close: z.number(),
168
+ volume_bid: z.number(),
169
+ volume_ask: z.number(),
170
+ change_percentage: z.number(),
170
171
  });
171
172
  export type Daily = z.infer<typeof dailyParser>;
172
173
 
@@ -212,18 +213,18 @@ export type GetMarketsResponse = z.infer<typeof getMarketsResponseParser>;
212
213
  * Trades
213
214
  */
214
215
  export const tradeParser = z.object({
215
- block_num: z.number(),
216
+ block_num: z.string(),
216
217
  block_time: z.string(),
217
- trade_id: z.number(),
218
+ trade_id: z.string(),
218
219
  market_id: z.number(),
219
220
  price: z.number(),
220
221
  bid_user: z.string(),
221
- bid_user_order_id: z.number(),
222
+ bid_user_order_id: z.string(),
222
223
  bid_total: z.number(),
223
224
  bid_amount: z.number(),
224
225
  bid_fee: z.number(),
225
226
  ask_user: z.string(),
226
- ask_user_order_id: z.number(),
227
+ ask_user_order_id: z.string(),
227
228
  ask_total: z.number(),
228
229
  ask_amount: z.number(),
229
230
  ask_fee: z.number(),