MCPcopy Index your code
hub / github.com/Mathieu2301/TradingView-API / replayStop

Method replayStop

src/chart/session.js:456–467  ·  view source on GitHub ↗

* Stop fetching a new period/candle every x ms * @returns {Promise} Raise when the replay mode stops

()

Source from the content-addressed store, hash-verified

454 * @returns {Promise} Raise when the replay mode stops
455 */
456 replayStop() {
457 return new Promise((cb) => {
458 if (!this.#replayMode) {
459 this.#handleError('No replay session');
460 return;
461 }
462
463 const reqID = genSessionID('rsq_stop');
464 this.#client.send('replay_stop', [this.#replaySessionID, reqID]);
465 this.#replayOKCB[reqID] = () => { cb(); };
466 });
467 }
468
469 /**
470 * When a symbol is loaded

Callers

nothing calls this directly

Calls 3

#handleErrorMethod · 0.95
genSessionIDFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected