Too many requests error

Ram
I am using kite publisher to place a basket order for 10 nos. But a few of my orders fail with Too many requests error.
I tried with 6 and I also get the same error (one of my order fails).

My API key is nas1u4zc1qf1x2x3
Tagged:
  • sujith
    Hi @Ram,
    Can you paste your basket details?
  • Ram
    Ram edited March 2017
    Below is the screenshot of the error. I get 2 errors out of 10.
    screenshot

    And this is my data payload
    [{"tradingsymbol":"TATAGLOBAL","exchange":"NSE","transaction_type":"SELL","order_type":"SL","variety":"regular","price":152.7,"quantity":1,"trigger_price":152.8,"product":"MIS"},{"tradingsymbol":"RELCAPITAL","exchange":"NSE","transaction_type":"SELL","order_type":"SL","variety":"regular","price":609.6,"quantity":1,"trigger_price":609.7,"product":"MIS"},{"tradingsymbol":"MRF","exchange":"NSE","transaction_type":"SELL","order_type":"SL","variety":"regular","price":59440.4,"quantity":1,"trigger_price":59440.5,"product":"MIS"},{"tradingsymbol":"CAIRN","exchange":"NSE","transaction_type":"SELL","order_type":"SL","variety":"regular","price":300.7,"quantity":1,"trigger_price":300.8,"product":"MIS"},{"tradingsymbol":"HINDZINC","exchange":"NSE","transaction_type":"SELL","order_type":"SL","variety":"regular","price":321.1,"quantity":1,"trigger_price":321.2,"product":"MIS"},{"tradingsymbol":"TATAGLOBAL","exchange":"NSE","transaction_type":"BUY","order_type":"SL-M","variety":"regular","price":0.0,"quantity":1,"trigger_price":157.5,"product":"MIS"},{"tradingsymbol":"RELCAPITAL","exchange":"NSE","transaction_type":"BUY","order_type":"SL-M","variety":"regular","price":0.0,"quantity":1,"trigger_price":628.5,"product":"MIS"},{"tradingsymbol":"MRF","exchange":"NSE","transaction_type":"BUY","order_type":"SL-M","variety":"regular","price":0.0,"quantity":1,"trigger_price":61284.9,"product":"MIS"},{"tradingsymbol":"CAIRN","exchange":"NSE","transaction_type":"BUY","order_type":"SL-M","variety":"regular","price":0.0,"quantity":1,"trigger_price":310.0,"product":"MIS"},{"tradingsymbol":"HINDZINC","exchange":"NSE","transaction_type":"BUY","order_type":"SL-M","variety":"regular","price":0.0,"quantity":1,"trigger_price":331.1,"product":"MIS"}]
  • Ram
    And this is the javascript code from my execution page


    var DATA = [{"product": "MIS", "order_type": "SL", "exchange": "NSE", "price": 152.7, "variety": "regular", "tradingsymbol": "TATAGLOBAL", "validity": "DAY", "transaction_type": "SELL", "trigger_price": 152.8, "readonly": false, "tag": null, "instrument_token": 878593, "quantity": 1}, {"product": "MIS", "order_type": "SL", "exchange": "NSE", "price": 609.6, "variety": "regular", "tradingsymbol": "RELCAPITAL", "validity": "DAY", "transaction_type": "SELL", "trigger_price": 609.7, "readonly": false, "tag": null, "instrument_token": 128028420, "quantity": 1}, {"product": "MIS", "order_type": "SL", "exchange": "NSE", "price": 59440.4, "variety": "regular", "tradingsymbol": "MRF", "validity": "DAY", "transaction_type": "SELL", "trigger_price": 59440.5, "readonly": false, "tag": null, "instrument_token": 128074244, "quantity": 1}, {"product": "MIS", "order_type": "SL", "exchange": "NSE", "price": 300.7, "variety": "regular", "tradingsymbol": "CAIRN", "validity": "DAY", "transaction_type": "SELL", "trigger_price": 300.8, "readonly": false, "tag": null, "instrument_token": 136394756, "quantity": 1}, {"product": "MIS", "order_type": "SL", "exchange": "NSE", "price": 321.1, "variety": "regular", "tradingsymbol": "HINDZINC", "validity": "DAY", "transaction_type": "SELL", "trigger_price": 321.2, "readonly": false, "tag": null, "instrument_token": 128048132, "quantity": 1}, {"product": "MIS", "order_type": "SL-M", "exchange": "NSE", "price": 0, "variety": "regular", "tradingsymbol": "TATAGLOBAL", "validity": "DAY", "transaction_type": "BUY", "trigger_price": 157.5, "readonly": false, "tag": null, "instrument_token": 878593, "quantity": 1}, {"product": "MIS", "order_type": "SL-M", "exchange": "NSE", "price": 0, "variety": "regular", "tradingsymbol": "RELCAPITAL", "validity": "DAY", "transaction_type": "BUY", "trigger_price": 628.5, "readonly": false, "tag": null, "instrument_token": 128028420, "quantity": 1}, {"product": "MIS", "order_type": "SL-M", "exchange": "NSE", "price": 0, "variety": "regular", "tradingsymbol": "MRF", "validity": "DAY", "transaction_type": "BUY", "trigger_price": 61284.9, "readonly": false, "tag": null, "instrument_token": 128074244, "quantity": 1}, {"product": "MIS", "order_type": "SL-M", "exchange": "NSE", "price": 0, "variety": "regular", "tradingsymbol": "CAIRN", "validity": "DAY", "transaction_type": "BUY", "trigger_price": 310.0, "readonly": false, "tag": null, "instrument_token": 136394756, "quantity": 1}, {"product": "MIS", "order_type": "SL-M", "exchange": "NSE", "price": 0, "variety": "regular", "tradingsymbol": "HINDZINC", "validity": "DAY", "transaction_type": "BUY", "trigger_price": 331.1, "readonly": false, "tag": null, "instrument_token": 128048132, "quantity": 1}],
    CLIENT = {"name": "BasketOrder", "rand_id": "1471", "rand_checksum": "47e6713c5d94f2d1d26991aa1e77867129e205640e966cf63f3ae10bd2bf317a", "api_key": "nas1u4zc1qf1x2x3", "partner_id": "ZMPGLW", "id": "146"},
    REDIRECT_URL = "https://finhacks.in?request_token=2dao28ofb1kqhxwba0tlx974ga078lio",
    REQUEST_TOKEN = "2dao28ofb1kqhxwba0tlx974ga078lio";
Sign In or Register to comment.