@orderly.network/ui-tradingview 2.8.6-alpha.0 → 2.8.7-alpha.0
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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -1241,9 +1241,12 @@ var _HistoryProvider = class _HistoryProvider {
|
|
|
1241
1241
|
barValue.low = parseFloat(response.l[i]);
|
|
1242
1242
|
}
|
|
1243
1243
|
if (volumePresent) {
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1244
|
+
const volume = parseFloat(response.v[i]);
|
|
1245
|
+
if (volume > 0) {
|
|
1246
|
+
barValue.volume = volume;
|
|
1247
|
+
} else {
|
|
1248
|
+
barValue.volume = 1e-10;
|
|
1249
|
+
}
|
|
1247
1250
|
}
|
|
1248
1251
|
bars.push(barValue);
|
|
1249
1252
|
}
|