Hello, I’m trying to get some historical data but get a “not found error” 404 while using the websocket:
body = {
"symbol": "ESM4",
"chartDescription": {
"underlyingType": "Tick",
"elementSize": 1,
"elementSizeUnit": "UnderlyingUnits"
},
"timeRange": {
"asMuchAsElements": 200
}
}
endpoint = 'md/getChart'
_request_id = 1
ws.send(f"{endpoint}\n{_request_id}\n\n{body}")
error message : {‘s’: 404, ‘i’: 1, ‘d’: ‘“Not found: md/getChart”’}
Could you please help figure out how to get historical data? and also I where I can find all the field mapping to get in the body for different endpoints ? checking the documentation I don’t see much information on this part.
There’s a different url for market data: ‘wss://md.tradovateapi.com/v1/websocket’.
export const URLs = {
DEMO_URL: "https://demo.tradovateapi.com/v1",
LIVE_URL: 'https://live.tradovateapi.com/v1',
MD_URL: 'wss://md.tradovateapi.com/v1/websocket',
WS_DEMO_URL: 'wss://demo.tradovateapi.com/v1/websocket',
WS_LIVE_URL: 'wss://live.tradovateapi.com/v1/websocket'
}
I’m not familiar with the code base you’re using. I found issues with Tradovate’s code personally.
but you also need 2 new lines before the body. see my example. (it looks like you are passing 2 new lines from the console output but it’s hard to tell given the last couple of lines
if you want a working example you can look at the web console of a running browser after logging in. navigate to the websocket connection to view the data going back and forth. subscribe to new data in the website… a…
Using that url gives a different response: ‘{ errorText: ‘Symbol is inaccessible’, errorCode: ‘UnknownSymbol’, mode: ‘None’ }’.
I’m trying to connect to the market data websocket in Python. I have no problems getting authorized with the access token or syncing my account with the websocket but when I try to subscribe to md/subscribeQuote I get this error:
a[{"s":200,"i":1,"d":{"errorText":"Symbol is inaccessible","errorCode":"UnknownSymbol","mode":"None"}}]
It doesn’t matter what symbol or symbol ID I use; I always get the same error.
Here is the plain text I am sending to the socket; from what I have read, this shoul…
Hi @Alexander is there any update on this issue? I’ve been trying to retrieve data from the api, but I’m having the same error
“errorText”: “Symbol is inaccessible”,
“errorCode”: “UnknownSymbol”,
for NQZ2
Maybe something to do with the CME considering me a data distributor or not.
Hi I am unable to subscribe using md/subscribeQoute via “wss://md.tradovateapi.com/v1/websocket”. Am getting logged in with the correct accessToken then out straight away… anyone able to assist…?