nodejs library updated - version 1.0.5
A new update of the nodejs library has been published.
https://www.npmjs.com/package/truedata-nodejs
The key changes in this library includes the addition of the symbol id in the Historical data REST return in case needed by the client.
The Default Historical REST data return includes the symbol name but does not include the symbol id.
Default > getSymbolId = 0
Need symbol Id in History REST return > getSymbolId = 1
.
A new update of the nodejs library has been published.
https://www.npmjs.com/package/truedata-nodejs
The key changes in this library includes the addition of the symbol id in the Historical data REST return in case needed by the client.
The Default Historical REST data return includes the symbol name but does not include the symbol id.
Default > getSymbolId = 0
Need symbol Id in History REST return > getSymbolId = 1
.
npm
npm: truedata-nodejs
Truedata's Official Nodejs Package. Latest version: 1.0.22, last published: 21 days ago. Start using truedata-nodejs in your project by running `npm i truedata-nodejs`. There are no other projects in the npm registry using truedata-nodejs.
Python Library Updated - version 3.0.2 - Automatic reconnect enabled
We are exited to announce the update of our Python library which now includes:-
> Automatic streaming Websocket reconnect enabled.
> Automatic subscription of symbols & restart of live data after reconnect.
So, in case of a Websockets disconnection, the library will check for the internet connection and once the connection is steady will try to re-connect the Real Time Websocket, automatically.
Once the Websocket connection is reestablished, the library will automatically re-subscribe the symbols & restart the live data seamlessly.
Please update your library to version 3.0.2 and see the magic yourself by disconnecting and reconnecting your internet cables π
Read more > https://pypi.org/project/truedata-ws/
Coming soon next:-
1) Top Gainers & Losers
2) Ability to now get tick & 1 min data simultaneously at the same time with this library (If subscribed for)
We are exited to announce the update of our Python library which now includes:-
> Automatic streaming Websocket reconnect enabled.
> Automatic subscription of symbols & restart of live data after reconnect.
So, in case of a Websockets disconnection, the library will check for the internet connection and once the connection is steady will try to re-connect the Real Time Websocket, automatically.
Once the Websocket connection is reestablished, the library will automatically re-subscribe the symbols & restart the live data seamlessly.
Please update your library to version 3.0.2 and see the magic yourself by disconnecting and reconnecting your internet cables π
Read more > https://pypi.org/project/truedata-ws/
Coming soon next:-
1) Top Gainers & Losers
2) Ability to now get tick & 1 min data simultaneously at the same time with this library (If subscribed for)
C# .Net Sample Project (code & Sample Release build) updated to Work with Historical (REST) APIs
1) C#.NET Sample project (TestWS) updated for the latest real time streaming updates
2) This project is updated & integrated with the Historical (REST) APIs also.
3) The Release build contains the sample app where you can enter your login details and test.
4) You can test real time data flow, historical data and also download the entire symbol list.
5) Please note that this is only a sample project. You need to pick up things from here and put them in your own app.
6) Direct Link to C#.Net folder in main Sample Code & Documentation folder > https://www.dropbox.com/sh/675xq5vbtcfsjg5/AADfdD6VGaC-Wg20xGQ1WMr6a?dl=0
Happy Coding ! π
1) C#.NET Sample project (TestWS) updated for the latest real time streaming updates
2) This project is updated & integrated with the Historical (REST) APIs also.
3) The Release build contains the sample app where you can enter your login details and test.
4) You can test real time data flow, historical data and also download the entire symbol list.
5) Please note that this is only a sample project. You need to pick up things from here and put them in your own app.
6) Direct Link to C#.Net folder in main Sample Code & Documentation folder > https://www.dropbox.com/sh/675xq5vbtcfsjg5/AADfdD6VGaC-Wg20xGQ1WMr6a?dl=0
Happy Coding ! π
TrueData Market Data API
HISTORICAL DATA VIA WEBSOCKET - SERVICE WILL TERMINATE on 30 APR 2021 Please note that the Historical data service via WebSocket has been deprecated and the service will terminate completely on 30 Apr 2021. There will be no extension of this service. Inβ¦
Historical Data is now available over REST only.
Historical Data service via Websocket is now terminated.
Historical Data service via Websocket is now terminated.
NSE - Open Interest updates frozen and not updating anywhere.
Open Interest which had stopped for all from the exchange again today, has started now.
Sandbox Page updated to accommodate Historical REST Testing
We have updated our Sandbox page and enabled Historical REST also on this page so that you can check the data flow and compare it with the results from your code.
Hope this page helps. Do provide us feedback if you wish to have anything else added to this page.
https://wstest.truedata.in/
We have updated our Sandbox page and enabled Historical REST also on this page so that you can check the data flow and compare it with the results from your code.
Hope this page helps. Do provide us feedback if you wish to have anything else added to this page.
https://wstest.truedata.in/
We have an issue with our Real-time data server. Expected resolution time = 10 mins
We are expecting another 10- 15 mins to resolution of RT feed
*ALL Issues are resolved...*
The real-time feed & login is working fine...
The issue was mainly a login issue & not a data issue. We had an issue with conflicted SSLs which has now been resolved permanently. This should never happen again. We are also working on a backup plan which shall be updated shortly.
History feed (REST) remained unaffected and has been fine since morning. There was no effect on Velocity Data plugin services and the same has been working normally since morning.
Sorry for the inconvenience caused.
Please log in now!
The real-time feed & login is working fine...
The issue was mainly a login issue & not a data issue. We had an issue with conflicted SSLs which has now been resolved permanently. This should never happen again. We are also working on a backup plan which shall be updated shortly.
History feed (REST) remained unaffected and has been fine since morning. There was no effect on Velocity Data plugin services and the same has been working normally since morning.
Sorry for the inconvenience caused.
Please log in now!
Some awesome work by @Jayant Mali.
Please do have a look at it.We are sure this could be very useful for you.
Here is the direct link >> https://github.com/codesutras/truedata-adapter
Please do have a look at it.We are sure this could be very useful for you.
Here is the direct link >> https://github.com/codesutras/truedata-adapter
GitHub
GitHub - codesutras/truedata-adapter: Async Python Program for truedata feed processing
Async Python Program for truedata feed processing. Contribute to codesutras/truedata-adapter development by creating an account on GitHub.
Testing RT Port 8083 would not be available from Friday, May 21- Post market hours
Please make sure you are always using the ports assigned to you.
Specific ports provided by us, as of date, are:-
Ports assigned for production RT feed are - 8082 or 8084.
(Default is 8082.
8084 only if specified to you)
Ports during migration to new RT feed - Enabled from time to time when feed formats are upgraded / changed / new additions - 8083.
Ports for sandbox RT feed environment - Having only few symbols to check feed flow in a sandbox environment - 8086.
Make sure you are on the right port because in case you are on a wrong port you won't be able to access the feed come Monday.
Note :- All ports other than the default port provided to you need to be enabled by us at the backend.
Please email us on support@truedata.in case of any doubt about the same.
Please make sure you are always using the ports assigned to you.
Specific ports provided by us, as of date, are:-
Ports assigned for production RT feed are - 8082 or 8084.
(Default is 8082.
8084 only if specified to you)
Ports during migration to new RT feed - Enabled from time to time when feed formats are upgraded / changed / new additions - 8083.
Ports for sandbox RT feed environment - Having only few symbols to check feed flow in a sandbox environment - 8086.
Make sure you are on the right port because in case you are on a wrong port you won't be able to access the feed come Monday.
Note :- All ports other than the default port provided to you need to be enabled by us at the backend.
Please email us on support@truedata.in case of any doubt about the same.
Python Library Updated - Version 4.0.1
We are glad to announce an update for the python library, which has gone through a lot of improvements.
Please read the Updated README to understand the changes.
https://pypi.org/project/truedata-ws/4.0.1/
In addition to the Release Notes, the README also has the code for 4 sample strategies for you to understand how you can use the feed, using just a 'State Check' and also with 'Callbacks' for you to understand usage.
Important Updates / Changes are listed below:-
Q1) Status of historical_port?
A1) historical_port is now historical_api
As there are no historical WebSocket ports now and all history is via REST, historical_port is now hsitorical_api.
If you were earlier using historical_port=<something>, please replace it with historical_api=False or historical_api=True depending upon whether you have subscribed for history or not.
Q2) When I run code I get warnings like ...
A2) This is just because the log is being shown and depends upon the logger level & the format selected. The format of the warnings can be changed by you if you wish.
The default format is:-
To get back to the previous format, just keep %(message)s in the format
Q3) RAM Memory explodes when running Historical data over rest using the python library
A3) Breaking changes have been made to td_obj.get_historic_data
-> ONLY if the ticker_id parameter is given, data can later be accessed at td_obj.hist_data[ticker_id] otherwise the data would not be accessible and the RAM would be emptied post request.
Q4) min streaming data does not come when subscribed to both tick + 1 min or 5 min streaming service
A4) If you are subscribed to tick+min streaming, you can access the min bar data at td_obj.min_live_data[req_id] in additional to your tick feed at td_obj.live_data[req_id].
Note, if you are subscribed to only min bar streaming service then the data will come to you at the same place it comes for the tick data which is at td_obj.live_data[req_id].
Q5) What is the status of the logger?
A5) Log Handler added + logging convenience parameters added + logging README section
Please go through the Logger readme section to understand more about the logger levels. You can increase/decrease the logging levels depending upon your needs. Please follow the links given in the Readme to learn more.
Q6) How to upgrade to this version (4.0.1)
A6) Please follow the following steps:-
or
> Many bugs have also been removed and things have been refined.
> Feedback on the same is welcome. Please send an email to support@truedata.in for feedback, issues, etc...
We are glad to announce an update for the python library, which has gone through a lot of improvements.
Please read the Updated README to understand the changes.
https://pypi.org/project/truedata-ws/4.0.1/
In addition to the Release Notes, the README also has the code for 4 sample strategies for you to understand how you can use the feed, using just a 'State Check' and also with 'Callbacks' for you to understand usage.
Important Updates / Changes are listed below:-
Q1) Status of historical_port?
A1) historical_port is now historical_api
As there are no historical WebSocket ports now and all history is via REST, historical_port is now hsitorical_api.
If you were earlier using historical_port=<something>, please replace it with historical_api=False or historical_api=True depending upon whether you have subscribed for history or not.
td_obj = TD('<enter_your_login_id>', '<enter_your_password>', historical_api=False)
Q2) When I run code I get warnings like ...
(2021-06-11 07:35:49,941) WARNING :: Connected successfully to TrueData Real Time Data Service... (PID:1401419 Thread:140574000531200)
(2021-06-11 07:35:49,954) WARNING :: Connected successfully to TrueData Historical Data Service... (PID:1401419 Thread:140574510761792)
(2021-06-11 07:37:04,009) WARNING :: Disconnected from Real Time Data WebSocket Connection ! (PID:1401419 Thread:140574510761792)
(2021-06-11 07:37:04,009) WARNING :: Disconnected from Historical Data REST Connection ! (PID:1401419 Thread:140574510761792)
A2) This is just because the log is being shown and depends upon the logger level & the format selected. The format of the warnings can be changed by you if you wish.
The default format is:-
import logging
td_obj = TD('<enter_your_login_id>', '<enter_your_password>', log_level=logging.WARNING, log_format="(%(asctime)s) %(levelname)s :: %(message)s (PID:%(process)d Thread:%(thread)d)")
To get back to the previous format, just keep %(message)s in the format
import logging
td_app = TD(usname, psword, url=server, live_port=realtime_port, historical_api=False, log_level=logging.WARNING, log_format="%(message)s")
Q3) RAM Memory explodes when running Historical data over rest using the python library
A3) Breaking changes have been made to td_obj.get_historic_data
-> ONLY if the ticker_id parameter is given, data can later be accessed at td_obj.hist_data[ticker_id] otherwise the data would not be accessible and the RAM would be emptied post request.
Q4) min streaming data does not come when subscribed to both tick + 1 min or 5 min streaming service
A4) If you are subscribed to tick+min streaming, you can access the min bar data at td_obj.min_live_data[req_id] in additional to your tick feed at td_obj.live_data[req_id].
Note, if you are subscribed to only min bar streaming service then the data will come to you at the same place it comes for the tick data which is at td_obj.live_data[req_id].
Q5) What is the status of the logger?
A5) Log Handler added + logging convenience parameters added + logging README section
Please go through the Logger readme section to understand more about the logger levels. You can increase/decrease the logging levels depending upon your needs. Please follow the links given in the Readme to learn more.
Q6) How to upgrade to this version (4.0.1)
A6) Please follow the following steps:-
pip install --upgrade truedata-ws
or
pip install truedata-ws==4.0.1
> Many bugs have also been removed and things have been refined.
> Feedback on the same is welcome. Please send an email to support@truedata.in for feedback, issues, etc...
PyPI
truedata-ws
Truedata's Official Python Package
Subscriptions streamlined at our backend
Please note that over the weekend we have streamlined the subscriptions' module for the api at our backend, which has been long over due.
Please ensure that you are using the correct segments and ports assigned to you. Others may not work.
If you are facing any issues please email us at support@truedata.in. We will respond with solutions instantly.
Happy Trading !
Please note that over the weekend we have streamlined the subscriptions' module for the api at our backend, which has been long over due.
Please ensure that you are using the correct segments and ports assigned to you. Others may not work.
If you are facing any issues please email us at support@truedata.in. We will respond with solutions instantly.
Happy Trading !