tradingview / charting-library-tutorial

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

Datafeed history endpoing from from/to params #84

Open ArmToken opened 1 year ago

ArmToken commented 1 year ago

Hi guys, when I'm using datafeed url in history request for from/to query params charting library is sending thsi values https://demo-feed-data.tradingview.com/history?symbol=AAPL&resolution=1D&from=%5Bobject%20Object%5D&to=(e%2Ct)%3D%3E%7Bif(!this._destroyed)if(a)this._logMessage(%22getBars%20callback%20is%20already%20called%20before%22%2C!0)%3Belse%7Bif(a%3D!0%2Ce.length%3E0)%7Bconst%20t%3D%60%20%5B%24%7Bu(e%5B0%5D.time)%7D%20...%20%24%7Bu(e%5Be.length-1%5D.time)%7D%5D%60%3Bthis._logMessage(%60Receiving%20bars%3A%20total%20%24%7Be.length%7D%20bars%20in%20%24%7Bt%7D%2C%20requested%20range%3A%20%24%7Bo%7D%60)%7Delse%20this._logMessage(%60Receiving%20bars%3A%20barset%20is%20empty%2C%20requested%20range%3A%20%24%7Bo%7D%60)%3Bthis._requesting%3D!1%2Cthis._processBars(e%2Ct)%7D%7D

Any idea why its not sending correct timestamp?