☰
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
15K
All Categories
0
Incidents
178
Node JS client
52
Go client
849
.Net API client
397
Kite Publisher
554
.Net / VBA / Excel (3rd party)
492
Algorithms and Strategies
1.1K
Java client
1.2K
API clients
410
PHP client
4.3K
Python client
357
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.6K
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.