☰
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
13.2K
All Categories
0
Incidents
127
Node JS client
38
Go client
769
.Net API client
362
Kite Publisher
532
.Net / VBA / Excel (3rd party)
435
Algorithms and Strategies
969
Java client
1K
API clients
401
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
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.