I went to Java readme and examples files in KiteConnect Java Library from below mentioned URL:- https://github.com/rainmattertech/javakiteconnect However, getting confused how to get access token after receiving request token. Can someone please provide me correct code for that to get access token.
Also I need details for following:- 1) Connecting to websocket to get live prices of SilverMicro Script:- Trading Symbol : SILVERMIC17FEBFUT / Instrument Token:53306119 Please help me with code to get last traded price of this instrument connecting to websocket.
2) Further, Place Normal Buy & Sell Orders in Market with Product type MIS:- The samples mentioned in the libraries are quite confusing, I don't need to place any bracket or cover order. I just need to place buy & sell market order for Trading Symbol : SILVERMIC17FEBFUT with product type MIS. Can you please provide the attributes for the same?
For more information about printing lastTradedPrice got through Tick model. Checkout code line number 31 in this https://github.com/rainmattertech/javakiteconnect/blob/master/sample/src/Examples.java
Placing MIS order is just setting product type as MIS for placing intra day order. For more information about placing order checkout docs here https://kite.trade//docs/connect/v1/#placing-orders