@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.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -690,13 +690,14 @@ var OrderBookResource = class {
|
|
|
690
690
|
granularity: "tick"
|
|
691
691
|
}
|
|
692
692
|
);
|
|
693
|
-
|
|
693
|
+
const tickData = response.data;
|
|
694
|
+
if (!tickData?.checkpoint || !tickData?.deltas) {
|
|
694
695
|
const errorMsg = response.error || response.message || "Tick-level orderbook data requires Enterprise tier. Upgrade your subscription or use a different granularity.";
|
|
695
696
|
throw new Error(errorMsg);
|
|
696
697
|
}
|
|
697
698
|
return {
|
|
698
|
-
checkpoint:
|
|
699
|
-
deltas:
|
|
699
|
+
checkpoint: tickData.checkpoint,
|
|
700
|
+
deltas: tickData.deltas
|
|
700
701
|
};
|
|
701
702
|
}
|
|
702
703
|
/**
|