@luxalgo/vela 0.6.0 → 0.6.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/dist/{DataProvider-DNx9ntBD.d.ts → DataProvider-CNmk84SH.d.cts} +27 -3
- package/dist/{DataProvider-Ce6PuCzQ.d.cts → DataProvider-DHX4x6-r.d.ts} +27 -3
- package/dist/{chunk-CA3N3PYT.js → chunk-7D6YIF34.js} +2151 -2464
- package/dist/{chunk-ZNL2X6U2.js → chunk-7Y7CJ7EN.js} +1 -1
- package/dist/{chunk-EMS6PO2T.js → chunk-PN5KWFZ4.js} +6 -1
- package/dist/chunk-QHZ7IXFL.js +2598 -0
- package/dist/chunk-TP56QRMK.js +503 -0
- package/dist/{chunk-7ROONW6H.js → chunk-U5KCQHAC.js} +141 -10
- package/dist/{contributions-Dlc7ZWZz.d.cts → contributions-DDpv7hEL.d.cts} +6 -2
- package/dist/{contributions-DToMhiw3.d.ts → contributions-ciV6Neyd.d.ts} +6 -2
- package/dist/{history-BZADxpKx.d.cts → history-CFqZm5re.d.ts} +21 -3
- package/dist/{history-BuHXJZJ2.d.ts → history-ChoT34nz.d.cts} +21 -3
- package/dist/index.cjs +3724 -2742
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4 -4
- package/dist/{options-BlQ00Fju.d.ts → options-BqGeFHtp.d.cts} +15 -1
- package/dist/{options-BlQ00Fju.d.cts → options-BqGeFHtp.d.ts} +15 -1
- package/dist/{plugin-BqjEa5r3.d.ts → plugin-C97gUCVf.d.ts} +7 -3
- package/dist/{plugin-BNPLOQO1.d.cts → plugin-CSb_sTiN.d.cts} +7 -3
- package/dist/plugin.d.cts +4 -4
- package/dist/plugin.d.ts +4 -4
- package/dist/plugin.js +2 -2
- package/dist/providers/binance.d.cts +2 -2
- package/dist/providers/binance.d.ts +2 -2
- package/dist/providers/coinbase.d.cts +2 -2
- package/dist/providers/coinbase.d.ts +2 -2
- package/dist/providers/hyperliquid.d.cts +2 -2
- package/dist/providers/hyperliquid.d.ts +2 -2
- package/dist/ui.cjs +1001 -247
- package/dist/ui.d.cts +258 -11
- package/dist/ui.d.ts +258 -11
- package/dist/ui.js +3 -3
- package/dist/vela.global.js +12358 -3961
- package/dist/vela.global.min.js +479 -124
- package/dist/widget.cjs +3463 -2867
- package/dist/widget.d.cts +20 -6
- package/dist/widget.d.ts +20 -6
- package/dist/widget.js +56 -11
- package/dist/workspace.cjs +3137 -2538
- package/dist/workspace.d.cts +22 -5
- package/dist/workspace.d.ts +22 -5
- package/dist/workspace.js +56 -8
- package/package.json +1 -1
- package/dist/chunk-OGRQW3M6.js +0 -1328
- package/dist/chunk-QWIEKZRE.js +0 -1042
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MarketConfig, O as OHLCV, U as Unsubscribe } from './options-
|
|
1
|
+
import { M as MarketConfig, O as OHLCV, U as Unsubscribe } from './options-BqGeFHtp.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Symbol metadata an engine may need (e.g. Pine `syminfo.*`). Free-form beyond
|
|
@@ -26,6 +26,12 @@ interface BarRange {
|
|
|
26
26
|
to?: number;
|
|
27
27
|
/** Max bars. */
|
|
28
28
|
limit?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Trading session to serve (`'regular'` | `'extended'`) — rides every request on
|
|
31
|
+
* markets that have sessions; absent = the provider's default. A provider without
|
|
32
|
+
* a session concept ignores it.
|
|
33
|
+
*/
|
|
34
|
+
session?: string;
|
|
29
35
|
}
|
|
30
36
|
interface MarketDataFeed {
|
|
31
37
|
/** Load the initial history (from a provider or the offline `data` array). */
|
|
@@ -128,9 +134,27 @@ interface DataProvider {
|
|
|
128
134
|
/**
|
|
129
135
|
* Open a true live stream for `ticker`/`timeframe`. Each call to `onBar` delivers
|
|
130
136
|
* the forming candle (or a freshly-closed one). Returns an unsubscribe fn. Absent
|
|
131
|
-
* ⇒ the feed polls `getBars` for ticks instead.
|
|
137
|
+
* ⇒ the feed polls `getBars` for ticks instead. `opts.session` names the trading
|
|
138
|
+
* session the chart is showing (see {@link BarRange.session}) — a provider whose
|
|
139
|
+
* live source cannot filter by session may fall back to polling internally.
|
|
140
|
+
*/
|
|
141
|
+
subscribe?(ticker: string, timeframe: string, onBar: (bar: OHLCV) => void, opts?: {
|
|
142
|
+
session?: string;
|
|
143
|
+
}): Unsubscribe;
|
|
144
|
+
/**
|
|
145
|
+
* Resolved market-calendar windows over `[range.from, range.to)`: ascending epoch-ms
|
|
146
|
+
* `[start, end)` pairs of OPEN market time, holidays and DST already applied by the
|
|
147
|
+
* source — the single market-time truth for session-anchored consumers (market-status
|
|
148
|
+
* badges, session profiles), which must never recompute a holiday themselves.
|
|
149
|
+
* `range.session` selects the window set (`'regular'` default; `'extended'` = the
|
|
150
|
+
* full tape). Absent ⇒ the venue offers no calendar (continuous markets) and
|
|
151
|
+
* consumers fall back to their own anchoring (e.g. UTC days).
|
|
132
152
|
*/
|
|
133
|
-
|
|
153
|
+
getCalendar?(ticker: string, range: {
|
|
154
|
+
from: number;
|
|
155
|
+
to: number;
|
|
156
|
+
session?: string;
|
|
157
|
+
}): Promise<ReadonlyArray<readonly [number, number]>>;
|
|
134
158
|
/** Apply runtime config (e.g. API keys). Absent ⇒ no configuration needed. */
|
|
135
159
|
configure?(config: unknown): void;
|
|
136
160
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MarketConfig, O as OHLCV, U as Unsubscribe } from './options-
|
|
1
|
+
import { M as MarketConfig, O as OHLCV, U as Unsubscribe } from './options-BqGeFHtp.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Symbol metadata an engine may need (e.g. Pine `syminfo.*`). Free-form beyond
|
|
@@ -26,6 +26,12 @@ interface BarRange {
|
|
|
26
26
|
to?: number;
|
|
27
27
|
/** Max bars. */
|
|
28
28
|
limit?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Trading session to serve (`'regular'` | `'extended'`) — rides every request on
|
|
31
|
+
* markets that have sessions; absent = the provider's default. A provider without
|
|
32
|
+
* a session concept ignores it.
|
|
33
|
+
*/
|
|
34
|
+
session?: string;
|
|
29
35
|
}
|
|
30
36
|
interface MarketDataFeed {
|
|
31
37
|
/** Load the initial history (from a provider or the offline `data` array). */
|
|
@@ -128,9 +134,27 @@ interface DataProvider {
|
|
|
128
134
|
/**
|
|
129
135
|
* Open a true live stream for `ticker`/`timeframe`. Each call to `onBar` delivers
|
|
130
136
|
* the forming candle (or a freshly-closed one). Returns an unsubscribe fn. Absent
|
|
131
|
-
* ⇒ the feed polls `getBars` for ticks instead.
|
|
137
|
+
* ⇒ the feed polls `getBars` for ticks instead. `opts.session` names the trading
|
|
138
|
+
* session the chart is showing (see {@link BarRange.session}) — a provider whose
|
|
139
|
+
* live source cannot filter by session may fall back to polling internally.
|
|
140
|
+
*/
|
|
141
|
+
subscribe?(ticker: string, timeframe: string, onBar: (bar: OHLCV) => void, opts?: {
|
|
142
|
+
session?: string;
|
|
143
|
+
}): Unsubscribe;
|
|
144
|
+
/**
|
|
145
|
+
* Resolved market-calendar windows over `[range.from, range.to)`: ascending epoch-ms
|
|
146
|
+
* `[start, end)` pairs of OPEN market time, holidays and DST already applied by the
|
|
147
|
+
* source — the single market-time truth for session-anchored consumers (market-status
|
|
148
|
+
* badges, session profiles), which must never recompute a holiday themselves.
|
|
149
|
+
* `range.session` selects the window set (`'regular'` default; `'extended'` = the
|
|
150
|
+
* full tape). Absent ⇒ the venue offers no calendar (continuous markets) and
|
|
151
|
+
* consumers fall back to their own anchoring (e.g. UTC days).
|
|
132
152
|
*/
|
|
133
|
-
|
|
153
|
+
getCalendar?(ticker: string, range: {
|
|
154
|
+
from: number;
|
|
155
|
+
to: number;
|
|
156
|
+
session?: string;
|
|
157
|
+
}): Promise<ReadonlyArray<readonly [number, number]>>;
|
|
134
158
|
/** Apply runtime config (e.g. API keys). Absent ⇒ no configuration needed. */
|
|
135
159
|
configure?(config: unknown): void;
|
|
136
160
|
/**
|