TradeViaPython / Kite_Zerodha

156 stars 108 forks source link

Need One More Function to Fetch Order Status is this possible? #6

Open bhautikjethva opened 1 year ago

Anirudh-12 commented 1 year ago

this package is based on kite publisher api you can develop your own methods by seeing the documentation of kite publisher api the commands are also in curl you can convert curl to python in this site

bhautikjethva commented 1 year ago

Hi @Anirudh-12 ,

I don't want to use the paid version of the api.kite.trade. So as this package achieved most of the basic necessary functions. can't we find or create one more function to fetch order status only using enctype token from Website?

Thanks

Anirudh-12 commented 1 year ago

kite.orders() retrieves all order data which includes transaction_type , order_id , trading_symbol , tag...etc maybe u can loop through all orders and get the required data and the documentation of kite publisher api may help and maybe this method can help '''

   def get_order_data(self, order_id):
        data = self.session.get(f"{self.root_url}/orders/{order_id}",headers=self.headers).json()['data']
        return data

it returns some order data of the specific order

bhautikjethva commented 4 months ago

Hello @Anirudh-12, Thank you for the previous function. can you please help me with the multiple instrument ltp price fetch.

i've tried to ["NSE:XYZ","NSE:ZBC"] this inside ltp function getting [] always.