FyersOrderSocket sample code is not working and giving a handshake error

Hi,

I am trying the sample python code given here to use FyersOrderSocket

https://myapi.fyers.in/docsv3#tag/Web-Socket/paths/~1GeneralSocket/post

I am getting the following error.

Error: Handshake status 403 Forbidden -+-+- {'date': 'Sun, 01 Oct 2023 06:44:06 GMT', 'content-length': '0', 'connection': 'keep-alive', 'cf-cache-status': 'DYNAMIC', 'set-cookie': '__cf_bm=skzwUh85PTp_NyITfjIyObOP6Cr3ifdqQOmRuoeo7mI-1696142646-0-ASRZF+Opv/9v4PA1VcW9RyCRDxFnoNrou3DzOO3iy0+d866mW7uXW/rPsgY2KzTfGL7ULjpL7Xk9ZUZF7IFBwhE=; path=/; expires=Sun, 01-Oct-23 07:14:06 GMT; domain=.fyers.in; HttpOnly; Secure', 'server': 'cloudflare', 'cf-ray': '80f2bc2fbee752aa-CCU'} -+-+- b''

FyersDataSocket code is working without any errors.

What can be the problem?

Thanks

1
10 replies