@typedtrader/exchange 0.2.2
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 +11 -0
- package/dist/index.cjs +967 -0
- package/dist/index.d.cts +361 -0
- package/dist/index.d.mts +361 -0
- package/dist/index.mjs +919 -0
- package/package.json +63 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @typedtrader/exchange
|
|
2
|
+
|
|
3
|
+
Utilities for handling trading exchange data with proper type safety and aggregation.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Candle Batching:** Aggregates multiple exchange candles into larger timeframes
|
|
8
|
+
- **Type Safety:** Zod schemas for runtime validation of exchange data
|
|
9
|
+
- **High Precision:** Uses `big.js` for arbitrary-precision decimal arithmetic
|
|
10
|
+
- **Event-Driven:** Built-in EventEmitter for streaming candle updates
|
|
11
|
+
- **Flexible Intervals:** Timeframes using human-readable strings (e.g., "1h", "5m")
|