Need Information for API

Apoorva K. shared this question 5 years ago
Answered
Best Answer
photo

We have launched our Websocket API also, recently. The API is gaining popularity amongst algo traders and in case you are interested, you could contact us for the same.

You can find the latest documentation for this Websocket API here >> TrueData Websocket API Documentation

Also, please use this community / forum here to post more queries about the API >> https://bit.ly/TrueData_Websocket_Forum

Replies (5)

photo
1

@Kapil Marwaha - Any updates

photo
1

We have opened a ticket for you and details send.

Thanks !

photo
1

Hi

Need HTTP api document and information on how to subscribe for it

Thanks

photo
1

Dear Sir,

Please find the TrueData HTTP API Package v 6.1 enclosed.

In this, we have also enclosed the postman collection for all the code.

Please go through the API in detail and revert with queries.

Help Documents >> Click Here

Please contact us over call or Live Chat for the login detais for HTTP/REST API:

Thank you & Best Regards !

photo
1

We have launched our Websocket API also, recently. The API is gaining popularity amongst algo traders and in case you are interested, you could contact us for the same.

You can find the latest documentation for this Websocket API here >> TrueData Websocket API Documentation

Also, please use this community / forum here to post more queries about the API >> https://bit.ly/TrueData_Websocket_Forum

photo
1

Hi.

I have subscribed to websocket API, but I would prefer to use HTTP REST API if its available. In this thread I see such an API was launched 2 years ago. Is it discontinued now ?


Thanks

photo
1

No, the HTTP API is not discontinued.

All documents of the same are also available in this thread.

After you are sure as to what you wish to pursue, send us a detailed email / raise a ticket.

photo
1

Thanks Aditya. I wish to pursue websocket only, because it is supposed to be faster than HTTP API. But I am worried because, I have been seeing issues in websocket. Very often it disconnects. As of writing this response, I am getting the error -> ....\websocket\_http.py", line 176, in _open_socket

sock.connect(address)

ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

Hence inquiring about the alternative. If it is more reliable and stable than websocket, I would consider using it instead of websocket.


Thanks

photo
1

Please note that disconnections could happen due to the following:-

  1. Maintenance at our end. Generally on weekends or early in the morning. We are working out exact timings to streamline this and this would soon be finalised
  2. If the streams buffer for you on the server side becomes full, the server will disconnect you. You need to ensure that the streaming feed continues to flow unhampered on one thread and all your calculations etc, are done on separate threads without affecting the main streaming data thread.

photo
1

Also please confirm the following to help you further:-

  1. Are you connecting to the feed on your local PC or is it a server/ VPS
  2. After how many historical requests or after how much time approximately are you getting disconnected

photo
1

Hi Aditya,


I'm facing the same error while I connect now:

"ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it"

I'm assuming it's because the service might be down for maintenance. As backtesting can work even on weekends, can I request you to move the down time to odd hours, even in the weekends(atleast for the historical APIs) as this is the time which I would spend my considerable amount of time for backtesting.


Thanks

photo
1

We have working on reducing the maintenance stoppages over the weekend which are now taking effect.

With the REST (Historical API) Upgrade the downtime for history maintenance during weekends has been reduced manifold.

photo
Leave a Comment
 
Attach a file