@0xarchive/sdk 0.8.0 → 0.8.1

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
@@ -889,6 +889,38 @@ var LighterInstrumentsResource = class {
889
889
  return response.data;
890
890
  }
891
891
  };
892
+ var Hip3InstrumentsResource = class {
893
+ constructor(http, basePath = "/v1/hyperliquid/hip3", coinTransform) {
894
+ this.http = http;
895
+ this.basePath = basePath;
896
+ this.coinTransform = coinTransform || ((c) => c);
897
+ }
898
+ coinTransform;
899
+ /**
900
+ * List all available HIP-3 instruments with latest market data
901
+ *
902
+ * @returns Array of HIP-3 instruments
903
+ */
904
+ async list() {
905
+ const response = await this.http.get(
906
+ `${this.basePath}/instruments`
907
+ );
908
+ return response.data;
909
+ }
910
+ /**
911
+ * Get a specific HIP-3 instrument by coin name
912
+ *
913
+ * @param coin - The coin name (e.g., 'km:US500', 'xyz:XYZ100'). Case-sensitive.
914
+ * @returns HIP-3 instrument details with latest market data
915
+ */
916
+ async get(coin) {
917
+ coin = this.coinTransform(coin);
918
+ const response = await this.http.get(
919
+ `${this.basePath}/instruments/${coin}`
920
+ );
921
+ return response.data;
922
+ }
923
+ };
892
924
 
893
925
  // src/resources/funding.ts
894
926
  var FundingResource = class {
@@ -1288,6 +1320,10 @@ var HyperliquidClient = class {
1288
1320
  }
1289
1321
  };
1290
1322
  var Hip3Client = class {
1323
+ /**
1324
+ * HIP-3 instruments with latest market data
1325
+ */
1326
+ instruments;
1291
1327
  /**
1292
1328
  * Order book snapshots (February 2026+)
1293
1329
  */
@@ -1307,6 +1343,7 @@ var Hip3Client = class {
1307
1343
  constructor(http) {
1308
1344
  const basePath = "/v1/hyperliquid/hip3";
1309
1345
  const coinTransform = (c) => c;
1346
+ this.instruments = new Hip3InstrumentsResource(http, basePath, coinTransform);
1310
1347
  this.orderbook = new OrderBookResource(http, basePath, coinTransform);
1311
1348
  this.trades = new TradesResource(http, basePath, coinTransform);
1312
1349
  this.funding = new FundingResource(http, basePath, coinTransform);