@0xarchive/sdk 0.5.1 → 0.5.3

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
@@ -132,9 +132,6 @@ const history = await client.lighter.orderbook.history('BTC', {
132
132
  The trades API uses cursor-based pagination for efficient retrieval of large datasets.
133
133
 
134
134
  ```typescript
135
- // Get recent trades
136
- const recent = await client.hyperliquid.trades.recent('BTC', 100);
137
-
138
135
  // Get trade history with cursor-based pagination
139
136
  let result = await client.hyperliquid.trades.list('BTC', {
140
137
  start: Date.now() - 86400000,
@@ -153,6 +150,9 @@ while (result.nextCursor) {
153
150
  });
154
151
  allTrades.push(...result.data);
155
152
  }
153
+
154
+ // Get recent trades (Lighter only - has real-time data)
155
+ const recent = await client.lighter.trades.recent('BTC', 100);
156
156
  ```
157
157
 
158
158
  ### Instruments