Jump to content
Medved Trader Forums

Websocket historical API returning afterhours data for current day


Benji

Recommended Posts

I noticed that when using TD Ameritrade as the datasource in the websocket API, the current day's historical candles display after-hours data. Is there a way to disable this and use the regular market close? I know the actual TD Ameritrade API has a "needExtendedHoursData" field which is unfortunately enabled by default. Any way to toggle this in MT in settings or the API? Thanks.

Edited by Benji
typo
Link to comment
Share on other sites

by default MT is set for Real-time updates for historical data, in which case the last candle is built from intraday OPEN, HIGH, LOW and last data, (as shown in portfolio, NOT chart related).  API gets the same thing. If you turn off the real-time stuff, then you will get just what is returned from Hist Backfill.. SETTINGS / CHARTS / GENERAL screen .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...