@lifi/perps-sdk 0.0.0-preview-29c8698 → 0.0.0-preview-91a6941

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/README.md CHANGED
@@ -127,10 +127,10 @@ margin that the close releases. Without an Ondo session, for Lighter spot
127
127
  markets, and for every other provider, the client falls back to the account
128
128
  summary, so `buy` and `sell` both equal `availableMargin`.
129
129
 
130
- Each collateral row in `Account.collateralBalances` and each spot row carries
130
+ Each perps-category row in `Account.collateralBalances` carries
131
131
  `transferable`: the part of `units` that the venue releases from that category
132
- for a transfer or a withdrawal. The value is always from `0` to `units`. No
133
- WebSocket channel updates it.
132
+ in a category transfer. The value is always from `0` to `units`. It is absent
133
+ on every other row, and no WebSocket channel updates it.
134
134
 
135
135
  - Hyperliquid: the sub-dex `clearinghouseState.withdrawable`, one row per
136
136
  sub-dex.
@@ -138,8 +138,6 @@ WebSocket channel updates it.
138
138
  `0` on every other asset's row, since a category transfer moves only the
139
139
  settlement asset.
140
140
  - Ondo: the `/v1/perps/balance` `withdrawableMargin`.
141
- - Hyperliquid spot rows: the `spotClearinghouseState` `total` minus `hold`.
142
- - Lighter spot rows: the asset `balance` minus `locked_balance`.
143
141
 
144
142
  `PerpsWsClient.streamsAvailableToTrade(provider)` tells a caller, before the
145
143
  first subscribe, whether the provider streams the `availableToTrade` channel.
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@lifi/perps-sdk";
2
- export declare const version = "0.0.0-preview-29c8698";
2
+ export declare const version = "0.0.0-preview-91a6941";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@lifi/perps-sdk';
5
- exports.version = '0.0.0-preview-29c8698';
5
+ exports.version = '0.0.0-preview-91a6941';
6
6
  //# sourceMappingURL=version.js.map
@@ -9,5 +9,5 @@ export declare const name = "@lifi/perps-sdk";
9
9
  *
10
10
  * @public
11
11
  */
12
- export declare const version = "0.0.0-preview-29c8698";
12
+ export declare const version = "0.0.0-preview-91a6941";
13
13
  //# sourceMappingURL=version.d.ts.map
@@ -9,5 +9,5 @@ export const name = '@lifi/perps-sdk';
9
9
  *
10
10
  * @public
11
11
  */
12
- export const version = '0.0.0-preview-29c8698';
12
+ export const version = '0.0.0-preview-91a6941';
13
13
  //# sourceMappingURL=version.js.map
@@ -9,5 +9,5 @@ export declare const name = "@lifi/perps-sdk";
9
9
  *
10
10
  * @public
11
11
  */
12
- export declare const version = "0.0.0-preview-29c8698";
12
+ export declare const version = "0.0.0-preview-91a6941";
13
13
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/perps-sdk",
3
- "version": "0.0.0-preview-29c8698",
3
+ "version": "0.0.0-preview-91a6941",
4
4
  "description": "LI.FI Perps SDK for perpetuals trading",
5
5
  "homepage": "https://github.com/lifinance/perps-sdk",
6
6
  "bugs": {
@@ -46,7 +46,7 @@
46
46
  "big.js": "^7.0.1",
47
47
  "partysocket": "^1.1.19",
48
48
  "viem": "^2.55.18",
49
- "@lifi/perps-types": "^0.0.0-preview-29c8698"
49
+ "@lifi/perps-types": "^0.0.0-preview-91a6941"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
package/src/version.ts CHANGED
@@ -10,4 +10,4 @@ export const name = '@lifi/perps-sdk'
10
10
  *
11
11
  * @public
12
12
  */
13
- export const version = '0.0.0-preview-29c8698'
13
+ export const version = '0.0.0-preview-91a6941'