i’m testing orders in V3 and their not going through.
Earlier we ‘had Version’ = 2.1 in HEADER but that is also removed so what is exact example for ORDER API using the CURL example in docs. There seems to be a big problem with code and documentation
it was indeed “false” which was causing the issue, but you can update in Docs as that is NOT type string and it is JSON bool.
Also, why is “/sync” appended to orders? It defeats the purpose of REST naming convention. Now everytime if request is of type orders need to append this whereas GET requests of orders, positions etc dont have this
Hi, @chirag , thanks for pointing out this data type mismatch between v2 and v3. I about to fall in a trap !
Here are the API endpoints I got from the Fyers package. As you said correctly, for only the POST method, you need /sync, but for GET, you don’t. What I do is simply use this as a map. To place, modify or cancel use order_endpoint and to get order details use orderbook