valr-typescript-client 1.0.22 → 1.0.23

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/CHECKSUMS.txt CHANGED
@@ -1,22 +1,23 @@
1
1
  # Package Checksums
2
2
 
3
- Generated on: 2026-01-03 10:18:39 UTC
4
- Git commit: 8dcbf4a37dd0fe8555eedfe091d0c342ed07c4dc
5
- Version: 1.0.22
3
+ Generated on: 2026-01-03 12:10:12 UTC
4
+ Git commit: 4a1243ba185663cf730db8336adeb8e03acdc4b2
5
+ Version: 1.0.23
6
6
 
7
7
  ## Distribution Files (SHA256)
8
8
 
9
9
  1ad7d8372ec293272faac50fb84b35965c3929b24d50a77423c722bc1ccef7fe dist/index.mjs.map
10
+ 3437e326103c1e4152983f727b2181f719e935ec5e6ed478df199267dc5568db dist/index.d.mts
11
+ 3437e326103c1e4152983f727b2181f719e935ec5e6ed478df199267dc5568db dist/index.d.ts
10
12
  39577c8273f8a1ca6b66e44709bf7b6c381e1b1c31755ded1ef4bc252904449a dist/index.js
11
13
  4864ea5b0f9f744caba9b4aeca007335a6c5149e73d060c9864345e19bc6da5b dist/index.js.map
12
14
  488b2a9c9dc822a4253c0250c9f7c4a5c7547e8c805dda35e9b28a1f31587c06 dist/index.mjs
13
- 4e70e0d9ae5ba14eeda706acb5c28eb1e770d914319ae2f48940f337b9aced59 dist/index.d.mts
14
- 4e70e0d9ae5ba14eeda706acb5c28eb1e770d914319ae2f48940f337b9aced59 dist/index.d.ts
15
15
 
16
16
  ## Source Files (SHA256)
17
17
 
18
18
  05cf6e982fcbd24cebc6c1b4c6e366095859cdf503eb70f5faf4d9bb9844631a src/client/ValrClient.ts
19
19
  0705454404aa0e0f2ce619615600d871c8052ac0afe495bb412219d9a6c032ac src/types/public.ts
20
+ 07451545d78e896ab106b594151b4b9a3ae5ca4a2328914b2040a67cec403270 src/types/margin.ts
20
21
  0a9bed00d1ee34300d532c01c86a300d76f51b96d50aea2ebae15750c7c06d94 src/api/account.ts
21
22
  0b4530d458e0c3bbadb79566943ef466404215e545f25c4965c72d9bfeee86dc src/api/health.ts
22
23
  13c4319ae883c96f779ea57f481c52f2298397e11950213f7d43a05290f42e8a src/api/trading.ts
@@ -25,7 +26,6 @@ Version: 1.0.22
25
26
  392124cca58a1532bd57472ba574bc065052c552ea8f10b7c675c942310c67e8 src/api/wallets.ts
26
27
  39fd4908c74bcca8c4e74a3a4e16de4439dfca781a7644ca9383c5f5096744cf src/types/futures.ts
27
28
  3e5ff90a945e12f321b0e7a5bdef82f95e0b04f6ba794eeed9d4887d80d50323 src/api/pay.ts
28
- 3ff881e0a329681fecb0eae9ce178e9d1e6e4d6a6d55bfb5eec99a46c85d4e2a src/types/margin.ts
29
29
  40f2245b2685e634bd0f531367561c1c26d174cc083c496c1f914e8c6a9f948a src/client/ValrWebSocketClient.ts
30
30
  4202fe777fda3e43ff944971783116f17031d124395e4a44cb2bf2bec5ff246c src/types/bundles.ts
31
31
  43ce3b42153a2e1a2d290ea893507c820e4461eb2162b1ccfa0d832118468618 src/api/margin.ts
package/dist/index.d.mts CHANGED
@@ -1489,6 +1489,10 @@ interface FundingHistoryParams extends PaginationParams {
1489
1489
  * Margin information V1
1490
1490
  */
1491
1491
  interface MarginInfoV1 {
1492
+ /** Current margin fraction (account equity / account debt in reference) */
1493
+ marginFraction: string;
1494
+ /** Current margin fraction excluding available assets (collateralised only) */
1495
+ collateralisedMarginFraction: string;
1492
1496
  /** Initial margin fraction */
1493
1497
  initialMarginFraction: string;
1494
1498
  /** Total borrowed in reference currency */
@@ -1505,15 +1509,27 @@ interface MarginInfoV1 {
1505
1509
  maintenanceMarginFraction: string;
1506
1510
  /** Auto close margin fraction */
1507
1511
  autoCloseMarginFraction: string;
1512
+ /** Debt-to-equity ratio (inverse of margin fraction) */
1513
+ leverageMultiple: number;
1508
1514
  /** Total positions at entry in reference currency */
1509
1515
  totalPositionsAtEntryInReference: string;
1510
1516
  /** Total unrealised futures PnL in reference currency */
1511
1517
  totalUnrealisedFuturesPnlInReference: string;
1518
+ /** Default initial margin fraction */
1519
+ defaultInitialMarginFraction?: string;
1520
+ /** Default maintenance margin fraction */
1521
+ defaultMaintenanceMarginFraction?: string;
1522
+ /** Default auto close margin fraction */
1523
+ defaultAutoCloseMarginFraction?: string;
1512
1524
  }
1513
1525
  /**
1514
1526
  * Margin information V2
1515
1527
  */
1516
1528
  interface MarginInfoV2 {
1529
+ /** Current margin fraction (account equity / account positions at open value) */
1530
+ marginFraction: string;
1531
+ /** Current margin fraction excluding available assets (collateralised only) */
1532
+ collateralisedMarginFraction: string;
1517
1533
  /** Initial margin fraction */
1518
1534
  initialMarginFraction: string;
1519
1535
  /** Total leveraged exposure in reference currency */
@@ -1530,6 +1546,8 @@ interface MarginInfoV2 {
1530
1546
  maintenanceMarginFraction: string;
1531
1547
  /** Auto close margin fraction */
1532
1548
  autoCloseMarginFraction: string;
1549
+ /** Debt-to-equity ratio (inverse of margin fraction) */
1550
+ leverageMultiple: number;
1533
1551
  /** Total positions at entry in reference currency */
1534
1552
  totalPositionsAtEntryInReference: string;
1535
1553
  /** Total unrealised futures PnL in reference currency */
package/dist/index.d.ts CHANGED
@@ -1489,6 +1489,10 @@ interface FundingHistoryParams extends PaginationParams {
1489
1489
  * Margin information V1
1490
1490
  */
1491
1491
  interface MarginInfoV1 {
1492
+ /** Current margin fraction (account equity / account debt in reference) */
1493
+ marginFraction: string;
1494
+ /** Current margin fraction excluding available assets (collateralised only) */
1495
+ collateralisedMarginFraction: string;
1492
1496
  /** Initial margin fraction */
1493
1497
  initialMarginFraction: string;
1494
1498
  /** Total borrowed in reference currency */
@@ -1505,15 +1509,27 @@ interface MarginInfoV1 {
1505
1509
  maintenanceMarginFraction: string;
1506
1510
  /** Auto close margin fraction */
1507
1511
  autoCloseMarginFraction: string;
1512
+ /** Debt-to-equity ratio (inverse of margin fraction) */
1513
+ leverageMultiple: number;
1508
1514
  /** Total positions at entry in reference currency */
1509
1515
  totalPositionsAtEntryInReference: string;
1510
1516
  /** Total unrealised futures PnL in reference currency */
1511
1517
  totalUnrealisedFuturesPnlInReference: string;
1518
+ /** Default initial margin fraction */
1519
+ defaultInitialMarginFraction?: string;
1520
+ /** Default maintenance margin fraction */
1521
+ defaultMaintenanceMarginFraction?: string;
1522
+ /** Default auto close margin fraction */
1523
+ defaultAutoCloseMarginFraction?: string;
1512
1524
  }
1513
1525
  /**
1514
1526
  * Margin information V2
1515
1527
  */
1516
1528
  interface MarginInfoV2 {
1529
+ /** Current margin fraction (account equity / account positions at open value) */
1530
+ marginFraction: string;
1531
+ /** Current margin fraction excluding available assets (collateralised only) */
1532
+ collateralisedMarginFraction: string;
1517
1533
  /** Initial margin fraction */
1518
1534
  initialMarginFraction: string;
1519
1535
  /** Total leveraged exposure in reference currency */
@@ -1530,6 +1546,8 @@ interface MarginInfoV2 {
1530
1546
  maintenanceMarginFraction: string;
1531
1547
  /** Auto close margin fraction */
1532
1548
  autoCloseMarginFraction: string;
1549
+ /** Debt-to-equity ratio (inverse of margin fraction) */
1550
+ leverageMultiple: number;
1533
1551
  /** Total positions at entry in reference currency */
1534
1552
  totalPositionsAtEntryInReference: string;
1535
1553
  /** Total unrealised futures PnL in reference currency */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valr-typescript-client",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "TypeScript client for the VALR cryptocurrency exchange API with full type safety, WebSocket support, and comprehensive endpoint coverage",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",