@rabby-wallet/hyperliquid-sdk 1.0.0-beta.6 → 1.0.0-beta.7

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
@@ -32,8 +32,10 @@ const sdk = new HyperliquidSDK({
32
32
  // 获取所有中间价
33
33
  const prices = await sdk.info.getAllMids();
34
34
 
35
- // 获取市场元数据与资产上下文
36
- const [meta, assetCtxs] = await sdk.info.metaAndAssetCtxs();
35
+ // 获取市场元数据与资产上下文
36
+ const canUseCache = true; //默认使用缓存,多次请求并发去重 ,需要刷新传false
37
+ const [meta, assetCtxs] = await sdk.info.metaAndAssetCtxs(canUseCache);
38
+
37
39
 
38
40
  // 获取账户综合状态
39
41
  const account = await sdk.info.getClearingHouseState();
@@ -226,6 +226,7 @@ export interface WsFill {
226
226
  tid: number;
227
227
  }
228
228
  export interface AssetCtx {
229
+ dayBaseVlm: string;
229
230
  dayNtlVlm: string;
230
231
  funding: string;
231
232
  impactPxs: [string, string];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/hyperliquid-sdk",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.7",
4
4
  "description": "Simplified Hyperliquid Perpetuals Trading SDK for Frontend Applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",