☰
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.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
348
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
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.