Skip to navigation

Change Speed

View as Markdown

Change the playback speed of a Market Replay session.

Send this request over a WebSocket connected to the Market Replay URL to adjust how fast the session plays back. The speed parameter is a percentage from 0 to 400, where 100 is real time and 400 is four times real time.

const URL = 'wss://replay.tradovateapi.com/v1/websocket'
const myMarketReplaySocket = new WebSocket(URL)
myMarketReplaySocket.send(`replay/changespeed\n1\n\n${JSON.stringify({ speed: 100 })}`)

The server sometimes pauses a session on its own; while paused, it keeps sending clock events with speed set to 0. Send another replay/changespeed request to resume playback.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
speedintegerRequired0-400

Response

SimpleResponse
okboolean
errorTextstringOptional<=8192 characters

Non-empty if the request failed