tradingview / charting-library-tutorial

This tutorial explains step by step how to connect your data to the Charting Library
MIT License
435 stars 317 forks source link

onHistoryCallback is not a function #24

Closed arezoo88 closed 3 years ago

arezoo88 commented 3 years ago

i get this error: [getBars]: Get error TypeError: "onHistoryCallback is not a function"

eugene-korobko commented 3 years ago

Please pay your attention to breaking change on the latest release

getBars(symbolInfo, resolution, periodParams, onHistoryCallback, onErrorCallback)

and make sure your function has the same signature

timocov commented 3 years ago

And make sure that you're on the latest version of the library. This tutorial is adapted to work with the latest unstable version of the charting library. If you need some previous version, please use git history.