mconnectb 1.0.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.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +351 -0
  3. package/dist/constants/index.d.ts +158 -0
  4. package/dist/constants/index.d.ts.map +1 -0
  5. package/dist/constants/index.js +161 -0
  6. package/dist/constants/index.js.map +1 -0
  7. package/dist/constants/routes.d.ts +109 -0
  8. package/dist/constants/routes.d.ts.map +1 -0
  9. package/dist/constants/routes.js +120 -0
  10. package/dist/constants/routes.js.map +1 -0
  11. package/dist/example/example.d.ts +44 -0
  12. package/dist/example/example.d.ts.map +1 -0
  13. package/dist/example/example.js +727 -0
  14. package/dist/example/example.js.map +1 -0
  15. package/dist/example/websocket-stream.d.ts +2 -0
  16. package/dist/example/websocket-stream.d.ts.map +1 -0
  17. package/dist/example/websocket-stream.js +116 -0
  18. package/dist/example/websocket-stream.js.map +1 -0
  19. package/dist/lib/connect.d.ts +306 -0
  20. package/dist/lib/connect.d.ts.map +1 -0
  21. package/dist/lib/connect.js +514 -0
  22. package/dist/lib/connect.js.map +1 -0
  23. package/dist/lib/index.d.ts +5 -0
  24. package/dist/lib/index.d.ts.map +1 -0
  25. package/dist/lib/index.js +27 -0
  26. package/dist/lib/index.js.map +1 -0
  27. package/dist/lib/response-logger.d.ts +15 -0
  28. package/dist/lib/response-logger.d.ts.map +1 -0
  29. package/dist/lib/response-logger.js +73 -0
  30. package/dist/lib/response-logger.js.map +1 -0
  31. package/dist/lib/ticker.d.ts +43 -0
  32. package/dist/lib/ticker.d.ts.map +1 -0
  33. package/dist/lib/ticker.js +362 -0
  34. package/dist/lib/ticker.js.map +1 -0
  35. package/dist/lib/utils.d.ts +36 -0
  36. package/dist/lib/utils.d.ts.map +1 -0
  37. package/dist/lib/utils.js +75 -0
  38. package/dist/lib/utils.js.map +1 -0
  39. package/dist/test/test-websocket.d.ts +2 -0
  40. package/dist/test/test-websocket.d.ts.map +1 -0
  41. package/dist/test/test-websocket.js +116 -0
  42. package/dist/test/test-websocket.js.map +1 -0
  43. package/dist/test/test.d.ts +2 -0
  44. package/dist/test/test.d.ts.map +1 -0
  45. package/dist/test/test.js +892 -0
  46. package/dist/test/test.js.map +1 -0
  47. package/dist/types/config.d.ts +138 -0
  48. package/dist/types/config.d.ts.map +1 -0
  49. package/dist/types/config.js +12 -0
  50. package/dist/types/config.js.map +1 -0
  51. package/dist/types/index.d.ts +631 -0
  52. package/dist/types/index.d.ts.map +1 -0
  53. package/dist/types/index.js +12 -0
  54. package/dist/types/index.js.map +1 -0
  55. package/package.json +91 -0
@@ -0,0 +1,631 @@
1
+ /**
2
+ * Type definitions for TypeB SDK
3
+ *
4
+ * This module contains all TypeScript type definitions used throughout the TypeB SDK.
5
+ * These types define the structure for request parameters, response data, authentication,
6
+ * trading operations, and WebSocket communications.
7
+ *
8
+ * @module types
9
+ */
10
+ /**
11
+ * Parameters for placing a new order
12
+ *
13
+ * Defines the structure for order placement requests including all required
14
+ * and optional parameters for different order types.
15
+ *
16
+ * @interface PlaceOrderParams
17
+ * @property {string} variety - Order variety (NORMAL, STOPLOSS, ROBO, AMO)
18
+ * @property {string} tradingsymbol - Trading symbol of the instrument
19
+ * @property {string} symboltoken - Unique symbol token identifier
20
+ * @property {string} exchange - Exchange identifier (NSE, BSE, NFO, etc.)
21
+ * @property {string} transactiontype - Transaction type (BUY or SELL)
22
+ * @property {string} ordertype - Order type (MARKET, LIMIT, STOPLOSS_LIMIT, STOPLOSS_MARKET)
23
+ * @property {string} quantity - Order quantity
24
+ * @property {string} producttype - Product type (DELIVERY, MARGIN, INTRADAY, BO, CARRYFORWARD)
25
+ * @property {string} [price] - Order price (required for LIMIT orders)
26
+ * @property {string} [triggerprice] - Trigger price (required for STOPLOSS orders)
27
+ * @property {string} [squareoff] - Square off price (for BO orders)
28
+ * @property {string} [stoploss] - Stop loss price (for BO orders)
29
+ * @property {string} [trailingStopLoss] - Trailing stop loss value
30
+ * @property {string} [disclosedquantity] - Disclosed quantity for iceberg orders
31
+ * @property {string} [duration] - Order validity (DAY or IOC)
32
+ * @property {string} [ordertag] - Custom order tag for identification
33
+ */
34
+ export interface PlaceOrderParams {
35
+ variety: string;
36
+ tradingsymbol: string;
37
+ symboltoken: string;
38
+ exchange: string;
39
+ transactiontype: string;
40
+ ordertype: string;
41
+ quantity: string;
42
+ producttype: string;
43
+ price?: string;
44
+ triggerprice?: string;
45
+ squareoff?: string;
46
+ stoploss?: string;
47
+ trailingStopLoss?: string;
48
+ disclosedquantity?: string;
49
+ duration?: string;
50
+ ordertag?: string;
51
+ }
52
+ /**
53
+ * Parameters for modifying an existing order
54
+ *
55
+ * Defines the structure for order modification requests.
56
+ *
57
+ * @interface ModifyOrderParams
58
+ * @property {string} variety - Order variety
59
+ * @property {string} orderid - Unique order ID to modify
60
+ * @property {string} tradingsymbol - Trading symbol
61
+ * @property {string} symboltoken - Symbol token
62
+ * @property {string} exchange - Exchange identifier
63
+ * @property {string} ordertype - New order type
64
+ * @property {string} quantity - New quantity
65
+ * @property {string} producttype - New product type
66
+ * @property {string} [duration] - New duration (DAY or IOC)
67
+ * @property {string} [price] - New price
68
+ * @property {string} [triggerprice] - New trigger price
69
+ */
70
+ export interface ModifyOrderParams {
71
+ variety: string;
72
+ orderid: string;
73
+ tradingsymbol: string;
74
+ symboltoken: string;
75
+ exchange: string;
76
+ ordertype: string;
77
+ quantity: string;
78
+ producttype: string;
79
+ duration?: string;
80
+ price?: string;
81
+ triggerprice?: string;
82
+ }
83
+ /**
84
+ * Parameters for canceling an order
85
+ *
86
+ * @interface CancelOrderParams
87
+ * @property {string} variety - Order variety
88
+ * @property {string} orderid - Order ID to cancel
89
+ */
90
+ export interface CancelOrderParams {
91
+ variety: string;
92
+ orderid: string;
93
+ }
94
+ /**
95
+ * Parameters for fetching order details
96
+ *
97
+ * @interface OrderDetailsReq
98
+ * @property {string} order_no - Order number to fetch details for
99
+ * @property {string} segment - Market segment
100
+ */
101
+ export interface OrderDetailsReq {
102
+ order_no: string;
103
+ }
104
+ /**
105
+ * Parameters for fetching historical data
106
+ *
107
+ * @interface HistoricalDataParams
108
+ * @property {string} exchange - Exchange identifier
109
+ * @property {string} symboltoken - Symbol token
110
+ * @property {string} interval - Candlestick interval
111
+ * @property {string} fromdate - Start date in YYYY-MM-DD format
112
+ * @property {string} todate - End date in YYYY-MM-DD format
113
+ */
114
+ export interface HistoricalDataParams {
115
+ exchange: string;
116
+ symboltoken: string;
117
+ interval: string;
118
+ fromdate: string;
119
+ todate: string;
120
+ }
121
+ /**
122
+ * Parameters for fetching real-time quotes
123
+ *
124
+ * @interface QuoteParams
125
+ * @property {string} mode - Quote mode (LTP, OHLC, or FULL)
126
+ * @property {Object} exchangeTokens - Object mapping exchanges to arrays of symbol tokens
127
+ */
128
+ export interface QuoteParams {
129
+ mode: string;
130
+ exchangeTokens: {
131
+ [exchange: string]: string[];
132
+ };
133
+ }
134
+ /**
135
+ * Parameters for converting position type
136
+ *
137
+ * @interface ConvertPositionParams
138
+ * @property {string} exchange - Exchange identifier
139
+ * @property {string} symboltoken - Symbol token
140
+ * @property {string} oldproducttype - Current product type
141
+ * @property {string} newproducttype - New product type to convert to
142
+ * @property {string} tradingsymbol - Trading symbol
143
+ * @property {string} symbolname - Symbol name
144
+ * @property {string} transactiontype - Transaction type (BUY or SELL)
145
+ * @property {number} quantity - Quantity to convert
146
+ * @property {string} type - Conversion type (DAY or NET)
147
+ */
148
+ export interface ConvertPositionParams {
149
+ exchange: string;
150
+ symboltoken: string;
151
+ oldproducttype: string;
152
+ newproducttype: string;
153
+ tradingsymbol: string;
154
+ symbolname: string;
155
+ transactiontype: string;
156
+ quantity: number;
157
+ type: string;
158
+ }
159
+ /**
160
+ * Generic API response wrapper
161
+ *
162
+ * Standard response format for all API endpoints
163
+ *
164
+ * @interface APIResponse
165
+ * @template T - Type of the response data
166
+ * @property {boolean} status - Success status of the request
167
+ * @property {string} message - Response message
168
+ * @property {string} errorcode - Error code if request failed
169
+ * @property {T | null} data - Response data or null if failed
170
+ */
171
+ export interface APIResponse<T> {
172
+ status: boolean;
173
+ message: string;
174
+ errorcode: string;
175
+ data: T | null;
176
+ }
177
+ /**
178
+ * Detailed order information
179
+ *
180
+ * Comprehensive order details including all order parameters and current status
181
+ *
182
+ * @interface OrderDetails
183
+ */
184
+ export interface OrderDetails {
185
+ variety: string;
186
+ ordertype: string;
187
+ producttype: string;
188
+ duration: string;
189
+ price: number;
190
+ triggerprice: number;
191
+ quantity: string;
192
+ disclosedquantity: string;
193
+ squareoff: number;
194
+ stoploss: number;
195
+ trailingstoploss: number;
196
+ tradingsymbol: string;
197
+ transactiontype: string;
198
+ exchange: string;
199
+ symboltoken: string;
200
+ instrumenttype: string;
201
+ strikeprice: number;
202
+ optiontype: string;
203
+ expirydate: string;
204
+ lotsize: string;
205
+ cancelsize: string;
206
+ averageprice: string;
207
+ filledshares: string;
208
+ unfilledshares: string;
209
+ orderid: string;
210
+ text: string;
211
+ status: string;
212
+ orderstatus: string;
213
+ updatetime: string;
214
+ exchtime: string;
215
+ exchorderupdatetime: string;
216
+ fillid: string;
217
+ filltime: string;
218
+ parentorderid: string;
219
+ ordertag: string;
220
+ uniqueorderid: string;
221
+ }
222
+ /**
223
+ * Order book entry data
224
+ *
225
+ * Represents a single order in the order book
226
+ *
227
+ * @interface OrderBookData
228
+ */
229
+ export interface OrderBookData {
230
+ variety: string;
231
+ ordertype: string;
232
+ producttype: string;
233
+ duration: string;
234
+ price: string;
235
+ triggerprice: string;
236
+ quantity: string;
237
+ disclosedquantity: string;
238
+ squareoff: string;
239
+ stoploss: string;
240
+ trailingstoploss: string;
241
+ tradingsymbol: string;
242
+ transactiontype: string;
243
+ exchange: string;
244
+ symboltoken: string;
245
+ instrumenttype: string;
246
+ strikeprice: string;
247
+ optiontype: string;
248
+ expirydate: string;
249
+ lotsize: string;
250
+ cancelsize: string;
251
+ averageprice: string;
252
+ filledshares: string;
253
+ unfilledshares: string;
254
+ orderid: string;
255
+ text: string;
256
+ status: string;
257
+ orderstatus: string;
258
+ updatetime: string;
259
+ exchtime: string;
260
+ exchorderupdatetime: string;
261
+ fillid: string;
262
+ filltime: string;
263
+ parentorderid: string;
264
+ uniqueorderid: string;
265
+ exchangeorderid: string;
266
+ }
267
+ /**
268
+ * Position data structure
269
+ *
270
+ * Represents an open position in the portfolio
271
+ *
272
+ * @interface PositionData
273
+ */
274
+ export interface PositionData {
275
+ exchange: string;
276
+ symboltoken: string;
277
+ producttype: string;
278
+ tradingsymbol: string;
279
+ symbolname: string;
280
+ instrumenttype: string;
281
+ netqty: string;
282
+ buyavgprice: string;
283
+ sellavgprice: string;
284
+ ltp?: string;
285
+ pnl?: string;
286
+ }
287
+ /**
288
+ * Holdings data structure
289
+ *
290
+ * Represents a holding in the portfolio
291
+ *
292
+ * @interface TypeBHolding
293
+ */
294
+ export interface TypeBHolding {
295
+ tradingsymbol: string;
296
+ exchange: string;
297
+ isin: string;
298
+ t1quantity: number;
299
+ realisedquantity: number;
300
+ quantity: number;
301
+ authorisedquantity: number;
302
+ product: string;
303
+ collateralquantity: number;
304
+ collateraltype: string;
305
+ haircut: number;
306
+ averageprice: number;
307
+ ltp: number;
308
+ symboltoken: string;
309
+ close: number;
310
+ profitandloss: number;
311
+ pnlpercentage: number;
312
+ }
313
+ /**
314
+ * Last traded price data
315
+ *
316
+ * @interface FetchedLtp
317
+ */
318
+ export interface FetchedLtp {
319
+ exchange: string;
320
+ tradingSymbol: string;
321
+ symbolToken: string;
322
+ ltp: number;
323
+ }
324
+ /**
325
+ * OHLC (Open, High, Low, Close) data
326
+ *
327
+ * @interface FetchedOhlc
328
+ * @extends {FetchedLtp}
329
+ */
330
+ export interface FetchedOhlc extends FetchedLtp {
331
+ open: number;
332
+ high: number;
333
+ low: number;
334
+ close: number;
335
+ }
336
+ /**
337
+ * Unfetched data error information
338
+ *
339
+ * @interface UnfetchedData
340
+ */
341
+ export interface UnfetchedData {
342
+ exchange: string;
343
+ symbolToken: string;
344
+ message: string;
345
+ errorCode: string;
346
+ }
347
+ /**
348
+ * Quote data wrapper
349
+ *
350
+ * @interface QuoteData
351
+ * @template T - Type of the quote data
352
+ */
353
+ export interface QuoteData<T> {
354
+ fetched: T[];
355
+ unfetched: UnfetchedData[];
356
+ }
357
+ /**
358
+ * Market depth packet data
359
+ *
360
+ * Represents a single level in the market depth
361
+ *
362
+ * @interface DepthPacket
363
+ */
364
+ export interface DepthPacket {
365
+ BuySellFlag: number;
366
+ Quantity: bigint;
367
+ Price: bigint;
368
+ NumberOfOrders: number;
369
+ }
370
+ /**
371
+ * Real-time feed data
372
+ *
373
+ * Represents real-time market data received via WebSocket
374
+ *
375
+ * @interface FeedData
376
+ */
377
+ export interface FeedData {
378
+ InstrumentToken: number;
379
+ Mode: string;
380
+ LastPrice: number;
381
+ Tradable: boolean;
382
+ LastQuantity?: number;
383
+ AveragePrice?: number;
384
+ Volume?: number;
385
+ BuyQuantity?: number;
386
+ SellQuantity?: number;
387
+ Open?: number;
388
+ High?: number;
389
+ Low?: number;
390
+ Close?: number;
391
+ Change?: number;
392
+ LastTradeTime?: Date;
393
+ OI?: number;
394
+ OIDayHigh?: number;
395
+ OIDayLow?: number;
396
+ Timestamp?: Date;
397
+ Bids?: DepthData[];
398
+ Offers?: DepthData[];
399
+ }
400
+ /**
401
+ * Market depth data
402
+ *
403
+ * @interface DepthData
404
+ */
405
+ export interface DepthData {
406
+ Quantity: number;
407
+ Price: number;
408
+ Orders: number;
409
+ }
410
+ /**
411
+ * Type A order update
412
+ *
413
+ * @interface TypeAUpdate
414
+ */
415
+ export interface TypeAUpdate {
416
+ variety: string;
417
+ ordertype: string;
418
+ ordertag?: string;
419
+ producttype: string;
420
+ price: number;
421
+ triggerprice: number;
422
+ quantity: string;
423
+ disclosedquantity: string;
424
+ duration: string;
425
+ squareoff: number;
426
+ stoploss: number;
427
+ trailingstoploss: number;
428
+ tradingsymbol: string;
429
+ transactiontype: string;
430
+ exchange: string;
431
+ symboltoken: string;
432
+ instrumenttype: string;
433
+ strikeprice: number;
434
+ optiontype: string;
435
+ expirydate: string;
436
+ lotsize: string;
437
+ cancelsize: string;
438
+ averageprice: string;
439
+ filledshares: string;
440
+ unfilledshares: string;
441
+ orderid: string;
442
+ text?: string;
443
+ status: string;
444
+ orderstatus: string;
445
+ updatetime: string;
446
+ exchtime: string;
447
+ exchorderupdatetime: string;
448
+ fillid?: string;
449
+ filltime?: string;
450
+ parentorderid?: string;
451
+ }
452
+ /**
453
+ * Type B order update
454
+ *
455
+ * @interface TypeBUpdate
456
+ */
457
+ export interface TypeBUpdate {
458
+ variety: string;
459
+ ordertype: string;
460
+ ordertag?: string;
461
+ producttype: string;
462
+ price: number;
463
+ triggerprice: number;
464
+ quantity: string;
465
+ disclosedquantity: string;
466
+ duration: string;
467
+ squareoff: number;
468
+ stoploss: number;
469
+ trailingstoploss: number;
470
+ tradingsymbol: string;
471
+ transactiontype: string;
472
+ exchange: string;
473
+ symboltoken: string;
474
+ instrumenttype: string;
475
+ strikeprice: number;
476
+ optiontype: string;
477
+ expirydate: string;
478
+ lotsize: string;
479
+ cancelsize: string;
480
+ averageprice: string;
481
+ filledshares: string;
482
+ unfilledshares: string;
483
+ orderid: string;
484
+ text?: string;
485
+ status: string;
486
+ orderstatus: string;
487
+ updatetime: string;
488
+ exchtime: string;
489
+ exchorderupdatetime: string;
490
+ fillid?: string;
491
+ filltime?: string;
492
+ parentorderid?: string;
493
+ }
494
+ /**
495
+ * Login request parameters
496
+ *
497
+ * @interface LoginReq
498
+ */
499
+ export interface LoginReq {
500
+ clientcode: string;
501
+ password: string;
502
+ totp: string;
503
+ state: string;
504
+ }
505
+ /**
506
+ * Authentication token response
507
+ *
508
+ * @interface TypeBToken
509
+ */
510
+ export interface TypeBToken {
511
+ jwtToken: string;
512
+ refreshToken: string;
513
+ feedToken: string;
514
+ state?: string;
515
+ }
516
+ /**
517
+ * Trade history request parameters
518
+ *
519
+ * @interface TradeHistoryReq
520
+ */
521
+ export interface TradeHistoryReq {
522
+ fromdate: string;
523
+ todate: string;
524
+ }
525
+ /**
526
+ * Order margin calculation request
527
+ *
528
+ * @interface OrderMarginReq
529
+ */
530
+ export interface OrderMarginReq {
531
+ orders: [OrderMargin];
532
+ }
533
+ /**
534
+ * Individual order margin parameters
535
+ *
536
+ * @interface OrderMargin
537
+ */
538
+ export interface OrderMargin {
539
+ product_type: string;
540
+ transaction_type: string;
541
+ quantity: number;
542
+ price: number;
543
+ exchange: string;
544
+ symbol_name: string;
545
+ token: number;
546
+ trigger_price: number;
547
+ }
548
+ /**
549
+ * Loser/Gainer data request parameters
550
+ *
551
+ * @interface LoserGainer
552
+ */
553
+ export interface LoserGainer {
554
+ Exchange: number;
555
+ SecurityIdCode: number;
556
+ segment: number;
557
+ TypeFlag: string;
558
+ }
559
+ /**
560
+ * Intraday chart data request parameters
561
+ *
562
+ * @interface IntradyChartDataParams
563
+ */
564
+ export interface IntradyChartDataParams {
565
+ exchange: string;
566
+ symboltoken: string;
567
+ interval: string;
568
+ }
569
+ /**
570
+ * Basket order fetch response
571
+ *
572
+ * @interface FetchBasket
573
+ */
574
+ export interface FetchBasket {
575
+ BASKET_ID: number;
576
+ BASKET_NAME: string;
577
+ COUNT: number;
578
+ CREATE_DATE: string;
579
+ DESCRIPTOR: string;
580
+ }
581
+ /**
582
+ * Basket creation parameters
583
+ *
584
+ * @interface CreateBasket
585
+ */
586
+ export interface CreateBasket {
587
+ BaskName: string;
588
+ BaskDesc: string;
589
+ }
590
+ /**
591
+ * Basket rename parameters
592
+ *
593
+ * @interface RenameBasket
594
+ */
595
+ export interface RenameBasket {
596
+ basketName: string;
597
+ BasketId: string;
598
+ }
599
+ /**
600
+ * Basket deletion parameters
601
+ *
602
+ * @interface DeleteBasket
603
+ */
604
+ export interface DeleteBasket {
605
+ BasketId: string;
606
+ }
607
+ /**
608
+ * Basket calculation parameters
609
+ *
610
+ * @interface CalcualteBasket
611
+ */
612
+ export interface CalcualteBasket {
613
+ include_exist_pos: string;
614
+ ord_product: string;
615
+ disc_qty: string;
616
+ segment: string;
617
+ trigger_price: string;
618
+ scriptcode: string;
619
+ ord_type: string;
620
+ basket_name: string;
621
+ operation: string;
622
+ order_validity: string;
623
+ order_qty: string;
624
+ script_stat: string;
625
+ buy_sell_indi: string;
626
+ basket_priority: string;
627
+ order_price: string;
628
+ basket_id: string;
629
+ exch_id: string;
630
+ }
631
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;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;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * Type definitions for TypeB SDK
4
+ *
5
+ * This module contains all TypeScript type definitions used throughout the TypeB SDK.
6
+ * These types define the structure for request parameters, response data, authentication,
7
+ * trading operations, and WebSocket communications.
8
+ *
9
+ * @module types
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}