valr-typescript-client 1.0.23 → 1.0.24

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,28 +1,28 @@
1
1
  # Package Checksums
2
2
 
3
- Generated on: 2026-01-03 12:10:12 UTC
4
- Git commit: 4a1243ba185663cf730db8336adeb8e03acdc4b2
5
- Version: 1.0.23
3
+ Generated on: 2026-01-04 12:54:43 UTC
4
+ Git commit: 5801f0e5c3918ead4b22097276d27764c43bc0da
5
+ Version: 1.0.24
6
6
 
7
7
  ## Distribution Files (SHA256)
8
8
 
9
- 1ad7d8372ec293272faac50fb84b35965c3929b24d50a77423c722bc1ccef7fe dist/index.mjs.map
10
- 3437e326103c1e4152983f727b2181f719e935ec5e6ed478df199267dc5568db dist/index.d.mts
11
- 3437e326103c1e4152983f727b2181f719e935ec5e6ed478df199267dc5568db dist/index.d.ts
12
- 39577c8273f8a1ca6b66e44709bf7b6c381e1b1c31755ded1ef4bc252904449a dist/index.js
13
- 4864ea5b0f9f744caba9b4aeca007335a6c5149e73d060c9864345e19bc6da5b dist/index.js.map
14
- 488b2a9c9dc822a4253c0250c9f7c4a5c7547e8c805dda35e9b28a1f31587c06 dist/index.mjs
9
+ 1ad514030f226670c9a3876382d2bf55bd17a8060af8bb8806ae053fc190fe72 dist/index.js
10
+ 71ab9936e34eeef39004fd175089db33b6d33fccfb9a20339dffbc13e9b90d88 dist/index.d.mts
11
+ 71ab9936e34eeef39004fd175089db33b6d33fccfb9a20339dffbc13e9b90d88 dist/index.d.ts
12
+ 7aee38224d434e0960cd922e3ea005730696262bcd1ca39eddf9683644695133 dist/index.mjs
13
+ a5a707a70fa00165f23c389b8b5725adc574e02838763686611b18548c340861 dist/index.mjs.map
14
+ e8e86091f42adbc55f0ff1b71d2456d5e8a60ba1eff6a5fec75ff298228764aa dist/index.js.map
15
15
 
16
16
  ## Source Files (SHA256)
17
17
 
18
18
  05cf6e982fcbd24cebc6c1b4c6e366095859cdf503eb70f5faf4d9bb9844631a src/client/ValrClient.ts
19
19
  0705454404aa0e0f2ce619615600d871c8052ac0afe495bb412219d9a6c032ac src/types/public.ts
20
20
  07451545d78e896ab106b594151b4b9a3ae5ca4a2328914b2040a67cec403270 src/types/margin.ts
21
- 0a9bed00d1ee34300d532c01c86a300d76f51b96d50aea2ebae15750c7c06d94 src/api/account.ts
22
21
  0b4530d458e0c3bbadb79566943ef466404215e545f25c4965c72d9bfeee86dc src/api/health.ts
23
22
  13c4319ae883c96f779ea57f481c52f2298397e11950213f7d43a05290f42e8a src/api/trading.ts
24
23
  15ef50a824d04e4466a4e34c29b54429c4d36e64d15eed1374c7165452da3abf src/api/loans.ts
25
24
  174ffc46347008d3f473af1916e8b1b38fb9752e68a69776df831dca676a1342 src/api/public.ts
25
+ 1b2b9d2ae756384d9495e833dfa77d77f7b69da31a710dbb1bcdb7f688caace7 src/types/account.ts
26
26
  392124cca58a1532bd57472ba574bc065052c552ea8f10b7c675c942310c67e8 src/api/wallets.ts
27
27
  39fd4908c74bcca8c4e74a3a4e16de4439dfca781a7644ca9383c5f5096744cf src/types/futures.ts
28
28
  3e5ff90a945e12f321b0e7a5bdef82f95e0b04f6ba794eeed9d4887d80d50323 src/api/pay.ts
@@ -30,16 +30,16 @@ Version: 1.0.23
30
30
  4202fe777fda3e43ff944971783116f17031d124395e4a44cb2bf2bec5ff246c src/types/bundles.ts
31
31
  43ce3b42153a2e1a2d290ea893507c820e4461eb2162b1ccfa0d832118468618 src/api/margin.ts
32
32
  4abf3aa146557f6f33f039a03a675cb6588da94f29e885ef97458cb698699425 src/types/common.ts
33
+ 4e77e25219e1d4c7552ffc6b561493e33fb179c31fc9eaf456a304e7d7055552 src/api/account.ts
33
34
  551aa287e635dad4d0209502a0410f09c169715a5bac95366a875038c3e50504 src/api/futures.ts
34
35
  5572db3151cd4db275a7ac6e8a8859e3c9048e0bd873a113f445139c0db2017c src/api/bundles.ts
35
- 562187bbc4b29a68add1fad7d63c73fb1345b45154358fa0276e2e224cfb7e5a src/types/account.ts
36
- 58186035ea5e98178c3a9b2b0404d0b0f57765b074af92289e0f9cfaa7acfcfe src/utils/http.ts
37
36
  593e9b1515cb7e1316feae0cf24a9300b879284677c5e790e650502b32c70706 src/types/websocket.ts
38
37
  612b1e543d1bbd97b75e814fa7d9b4ff4b1786f6b3671a03019917049e38a96e src/types/stake.ts
39
38
  6ec43e250aca38bc6a9dc4f16e5fe7e6ca25bd831270c5d02c1bc82d79f5731d src/types/loans.ts
40
39
  70636220daed500243e5cd40d25748efcd401a9ff50f4237fa200bce1fe3be38 src/errors/ValrError.ts
41
40
  84688ccf1549178fd43927028588f07d348076e4fe5681d61ea05179103c6959 src/types/trading.ts
42
41
  a52c483def6de035f7fcf690b6102129ea22cb817bed5a106d3617c8edc7d849 src/api/stake.ts
42
+ c235e305ae167ebe7b97944fb50df66df428cf7b4776aacab57f6c4d6083cf40 src/utils/http.ts
43
43
  dc9ef99ff3979f5dd0f0fc7231f9a6b9418dd13e0e8961511af1c9d54200576e src/types/pay.ts
44
44
  ea33c7a1b695a352f19757f81304cb22dd446b12ee0ba3a58bfb31f2446bbb70 src/types/index.ts
45
45
  ec209b0ff8de8e662c2ea701feccee22b53e6ed684affb3eacd39e68c3aa725a src/index.ts
package/dist/index.d.mts CHANGED
@@ -635,13 +635,15 @@ interface CreateSubaccountRequest {
635
635
  */
636
636
  interface TransferRequest {
637
637
  /** Currency to transfer */
638
- currency: CurrencyCode;
638
+ currencyCode: CurrencyCode;
639
639
  /** Amount to transfer */
640
640
  amount: string;
641
641
  /** Source subaccount ID (undefined for primary account) */
642
642
  fromId?: SubaccountId;
643
643
  /** Destination subaccount ID (undefined for primary account) */
644
644
  toId?: SubaccountId;
645
+ /** Borrow on margin for transfer */
646
+ allowBorrow?: boolean;
645
647
  }
646
648
 
647
649
  /**
package/dist/index.d.ts CHANGED
@@ -635,13 +635,15 @@ interface CreateSubaccountRequest {
635
635
  */
636
636
  interface TransferRequest {
637
637
  /** Currency to transfer */
638
- currency: CurrencyCode;
638
+ currencyCode: CurrencyCode;
639
639
  /** Amount to transfer */
640
640
  amount: string;
641
641
  /** Source subaccount ID (undefined for primary account) */
642
642
  fromId?: SubaccountId;
643
643
  /** Destination subaccount ID (undefined for primary account) */
644
644
  toId?: SubaccountId;
645
+ /** Borrow on margin for transfer */
646
+ allowBorrow?: boolean;
645
647
  }
646
648
 
647
649
  /**
package/dist/index.js CHANGED
@@ -132,7 +132,7 @@ var HttpClient = class {
132
132
  if (status === 400) {
133
133
  throw new ValrValidationError(
134
134
  data?.message || "Validation failed",
135
- data?.errors
135
+ data?.errors || data?.validationErrors?.errors
136
136
  );
137
137
  }
138
138
  throw new ValrApiError(
@@ -588,7 +588,7 @@ var AccountAPI = class {
588
588
  * @returns Transfer confirmation
589
589
  */
590
590
  async transferBetweenAccounts(request) {
591
- const response = await this.http.post("/v1/account/subaccount/transfer", request);
591
+ const response = await this.http.post("/v1/account/subaccounts/transfer", request);
592
592
  return response.data;
593
593
  }
594
594
  /**