Mathieu2301 / TradingView-API

📈 Get real-time stocks from TradingView
1.47k stars 332 forks source link

Internal server study error on running replay example script. #255

Closed narayanan-gokul closed 2 weeks ago

narayanan-gokul commented 3 weeks ago

Describe the bug I was trying out the replay feature of the library by running the exact script as defined in the example. I am even using the same market name, timeframe and startFrom values. However, the following Internal server study error occurs and the script hangs up:

Internal server study error: studylib/sdk/nsdata/rollback/RollbackableGraphicsColl, Command info: studyUid=05d87c3e-20f9-4583-a4a3-1c76fc2bc144, studyDef=StudyDef{studyId=Volume@tv-basicstudies-144, src=={"replay":"rs_F2WQXBNxtO5c","symbol":"BINANCE:BTCEUR"},D, inputs={col_prev_close=false, length=20}, symbolInfo=SymbolInfo{name=BINANCE:BTCEUR, group=replay, shortName=BTCEUR, description=Bitcoin / Euro,type=SPOT, hasIntraday=true,listedExchange=BINANCE,tradedExchange=Binance,priceScale=100,minMovement=1,minTick=0.01,pointValue=1.0,expiration=Expiration{type=DATE, value=0},sessions=0000-0000:1234567, regularSessions=0000-0000:1234567, currency=EUR, basecurrency=BTC, studyId=, studyInputs={}, extraParams={typespecs=crypto, min_contract=1.0E-6}, volumeType=base, typespecs=[crypto]}}, dependencies={} undefined

I am not well aware of the meaning behind the error message, so any help would be greatly appreciated!

To Reproduce Copy the examples/ReplayMode.js example and run it.

Expected behavior As there are no result screenshots for the example, I am not sure about what to expect, but I expect it to atleast run without any errors.

Environment: