@0xarchive/sdk 0.6.3 → 0.6.4

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/dist/index.mjs CHANGED
@@ -610,13 +610,14 @@ var OrderBookResource = class {
610
610
  granularity: "tick"
611
611
  }
612
612
  );
613
- if (!response.checkpoint || !response.deltas) {
613
+ const tickData = response.data;
614
+ if (!tickData?.checkpoint || !tickData?.deltas) {
614
615
  const errorMsg = response.error || response.message || "Tick-level orderbook data requires Enterprise tier. Upgrade your subscription or use a different granularity.";
615
616
  throw new Error(errorMsg);
616
617
  }
617
618
  return {
618
- checkpoint: response.checkpoint,
619
- deltas: response.deltas
619
+ checkpoint: tickData.checkpoint,
620
+ deltas: tickData.deltas
620
621
  };
621
622
  }
622
623
  /**