Response [200] Error on requests.get to get Order status

jyothish
This below line gives me a - Response [200] Error :

response = requests.get("https://api.kite.trade/orders/170207000185528?api_key=eya65voe10jorwzx&access_token=li4rx6wyikel67skwoedun422aqejozw")
print(response)

Any suggestions ?
Tagged:
  • sujith
    @jyothish, I got the following json
    {
    "status": "success",
    "data": [{
    "status": "COMPLETE",
    "product": "MIS",
    "pending_quantity": 0,
    "order_type": "MARKET",
    "exchange": "NSE",
    "order_id": "170207000185528",
    "price": 0.0,
    "exchange_order_id": "1200000001388707",
    "order_timestamp": "2017-02-07 10:23:42",
    "transaction_type": "BUY",
    "trigger_price": 0.0,
    "validity": "DAY",
    "disclosed_quantity": 0,
    "status_message": null,
    "average_price": 31.55,
    "quantity": 1
    }, {
    "status": "OPEN",
    "product": "MIS",
    "pending_quantity": 1,
    "order_type": "MARKET",
    "exchange": "NSE",
    "order_id": "170207000185528",
    "price": 0.0,
    "exchange_order_id": "1200000001388707",
    "order_timestamp": "2017-02-07 10:23:42",
    "transaction_type": "BUY",
    "trigger_price": 0.0,
    "validity": "DAY",
    "disclosed_quantity": 0,
    "status_message": null,
    "average_price": 0.0,
    "quantity": 1
    }, {
    "status": "OPEN PENDING",
    "product": "MIS",
    "pending_quantity": 1,
    "order_type": "MARKET",
    "exchange": "NSE",
    "order_id": "170207000185528",
    "price": 0.0,
    "exchange_order_id": null,
    "order_timestamp": "2017-02-07 10:23:42",
    "transaction_type": "BUY",
    "trigger_price": 0.0,
    "validity": "DAY",
    "disclosed_quantity": 0,
    "status_message": null,
    "average_price": 0.0,
    "quantity": 1
    }, {
    "status": "VALIDATION PENDING",
    "product": "MIS",
    "pending_quantity": 1,
    "order_type": "MARKET",
    "exchange": "NSE",
    "order_id": "170207000185528",
    "price": 0.0,
    "exchange_order_id": null,
    "order_timestamp": "2017-02-07 10:23:42",
    "transaction_type": "BUY",
    "trigger_price": 0.0,
    "validity": "DAY",
    "disclosed_quantity": 0,
    "status_message": null,
    "average_price": 0.0,
    "quantity": 1
    }, {
    "status": "PUT ORDER REQ RECEIVED",
    "product": "MIS",
    "pending_quantity": 0,
    "order_type": "MARKET",
    "exchange": "NSE",
    "order_id": "170207000185528",
    "price": 0.0,
    "exchange_order_id": null,
    "order_timestamp": "2017-02-07 10:23:42",
    "transaction_type": "BUY",
    "trigger_price": 0.0,
    "validity": "DAY",
    "disclosed_quantity": 0,
    "status_message": null,
    "average_price": 0.0,
    "quantity": 1
    }]
    }
  • jyothish
    thanks , resolved
This discussion has been closed.