☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14K
All Categories
0
Incidents
157
Node JS client
41
Go client
795
.Net API client
384
Kite Publisher
537
.Net / VBA / Excel (3rd party)
463
Algorithms and Strategies
1K
Java client
1.1K
API clients
406
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
February 2017
omkargade
February 2017
Vivek
store particular response attribute in variable
omkargade
February 2017
in
Python client
after executing kite.orders(order_id)
i am getting this output:
[{'status': 'REJECTED', 'product': 'MIS', 'pending_quantity': 0, 'order_type': 'MARKET', 'exchange': 'NSE', 'order_id': 'xxx', 'price': 0.0, 'exchange_order_id': None, 'order_timestamp': '2017-02-01 23:54:22', 'transaction_type': 'BUY', 'trigger_price': 0.0, 'validity': 'DAY', 'disclosed_quantity': 0, 'status_message': 'RMS: Auto Square Off Block', 'average_price': 0.0, 'quantity': 1}, {'status': 'VALIDATION PENDING', 'product': 'MIS', 'pending_quantity': 1, 'order_type': 'MARKET', 'exchange': 'NSE', 'order_id': 'xxx', 'price': 0.0, 'exchange_order_id': None, 'order_timestamp': '2017-02-01 23:54:22', 'transaction_type': 'BUY', 'trigger_price': 0.0, 'validity': 'DAY', 'disclosed_quantity': 0, 'status_message': None, 'average_price': 0.0, 'quantity': 1}, {'status': 'PUT ORDER REQ RECEIVED', 'product': 'MIS', 'pending_quantity': 0, 'order_type': 'MARKET', 'exchange': 'NSE', 'order_id': 'xxx', 'price': 0.0, 'exchange_order_id': None, 'order_timestamp': '2017-02-01 23:54:22', 'transaction_type': 'BUY', 'trigger_price': 0.0, 'validity': 'DAY', 'disclosed_quantity': 0, 'status_message': None, 'average_price': 0.0, 'quantity': 1}]
how can i store the value of 'price' in a variable in python?
Vivek
February 2017
Individual order call gives you entire order lifetime data in an array. You need to loop through the data and use data as you want.
omkargade
February 2017
Thank you.
This discussion has been closed.