... how efficient is a websocket channel for realtime feed? How does it compare with sometime like UDP in terms of latency?
It’s been efficient enough for my use. I don’t think you’d want to use UDP outside the data center as it’s an unreliable transfer method and you can end up missing quotes and trades. The biggest thing with a source like Tradier will be that they are in AWS us-east-1 and there’s some additional latency between them and the data source. Websockets with JSON encoding vs a binary protocol over raw TCP/UDP is minor compared to all the hops from exchange (+ to OPRA?) (+to secondary vendor?) to Tradier.
I run in AWS us-east-1 so I can minimize the additional latency.
Test your trading and look at the tape or quote stream to see if you’re missing trades you could have made and figure out if the amount your missing is worth a faster retail vendor (Nanex?) or renting racks at the exchanges.