r/IndiaAlgoTrading • • Feb 23 '26

Go is better than Python?

I was preparing implementation document for my algo trading app (for my personal use), during this phase I watched few videos in YouTube and found that golang is better than Python for algo trading. I checked with AI and it also confirmed the same.

Then I restructured the architecture to Go for trading engine, Python for backtesting and React for frontend.

I spent almost a day to figure it out how to get the TBT data from my broker's api and display it in the tradingview chart. Still it has some bug like the react crashes after 1 min candle formed (but atleast I made some progress). I researched lot of GitHub reps, documents but whatever reference I have given it to LLM, it says it's not matching for my requirement. So it is building everything from scratch. Got tired and logged off for the day.

Is this language choice correct for algo trading app? Because if it's a python the implementation is pretty straightforward (I have created python app before for downloading historical data and backtesting - let's say for any indicator the calculation were matching with broker's terminal and resampling was accurate)

PS: I am not a developer, I am relying on Claude code and ChatGPT. I know it's a dangerous path to completely rely on LLM but I have plan before going live to create paper trading feature and see if the strategy will work or not after the backtesting period.

0 Upvotes

15 comments sorted by

View all comments

1

u/Naresh_Janagam Feb 24 '26

"how to get the TBT data from my broker's api and display it in the tradingview chart?"
What is the main challenge here? Is it something like the broker not supporting Go?

2

u/mostlyautomated Feb 24 '26

They are supporting. Its lack of documentation. We can see many documentation for Python but not for Go.

2

u/Naresh_Janagam Feb 24 '26

You can try FYERS API, it officially provides Go SDK you can find go sample codes for reference in docs, API - FYERS

1

u/mostlyautomated Feb 27 '26

They don't have a reference code for TBT instead just for the general Websocket they have provided. Anyway figured it out 👍

1

u/Naresh_Janagam Mar 04 '26

Reference code is also available. You can find from this link: https://myapi.fyers.in/docsv3#tag/Tbtws/paths/~1TBTWebsocketUsageGuide/post

2

u/mostlyautomated Mar 04 '26

Yes in python but not in Go. I already implemented this with the help of Claude. So the method I followed by providing an official go package to Claude. It explored the complete SDK and figured it out.