@orderly.network/ui-tradingview 2.8.6 → 2.8.7
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.mjs
CHANGED
|
@@ -1235,9 +1235,12 @@ var _HistoryProvider = class _HistoryProvider {
|
|
|
1235
1235
|
barValue.low = parseFloat(response.l[i]);
|
|
1236
1236
|
}
|
|
1237
1237
|
if (volumePresent) {
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1238
|
+
const volume = parseFloat(response.v[i]);
|
|
1239
|
+
if (volume > 0) {
|
|
1240
|
+
barValue.volume = volume;
|
|
1241
|
+
} else {
|
|
1242
|
+
barValue.volume = 1e-10;
|
|
1243
|
+
}
|
|
1241
1244
|
}
|
|
1242
1245
|
bars.push(barValue);
|
|
1243
1246
|
}
|