Hi All I copied and pasted below code given by Zerodha website but it is giving error as below for
For order = KiteConnect.placeOrder(orderParams, Constants.VARIETY_REGULAR); I am getting below error "Cannot make a static reference to the non-static method placeOrder(OrderParams, String) from the type KiteConnect"
You have to initialize it by passing api_key and store it in a variable.
And,then use all the methods with this variable.
https://github.com/zerodha/javakiteconnect/blob/836822ba12a43fe695d9b6e7ce36c437c09f3e42/kiteconnect/src/com/zerodhatech/kiteconnect/KiteConnect.java#L47
Refer examples here:
https://github.com/zerodha/javakiteconnect/blob/master/sample/src/Examples.java#L20
PS: This forum is dedicated only for Kite Connect related queries. Please don't post programming related queries.