Kite publisher - NON STRING VALUE IN JSON REQUEST

Ram
Ram edited November 2016 in General
Hi,
Hi,
Executing an order using the publisher button gives me a NON STRING VALUE IN JSON REQUEST error.
I have already posted this error and its been solved but it has recurred again.
This is the link to the earlier post
Tagged:
  • sujith
    Hi Ram,
    Is this happening now?
    We just checked and it is working fine.
  • Ram
    @sujith It works fine now.
    But I got the error at the start of the day and I used basket order to place the order.
  • Ram
    Ram edited December 2016
    @sujith
    I still get the error and this is the screenshot




    My API key is nas1u4zc1qf1x2x3
  • Ram
    The publisher demo works but my order doesn't work and this is my payload


    var DATA = [{"product": "MIS", "order_type": "SL", "trigger_price": 764.3, "price": 764.2, "exchange": "NSE", "tradingsymbol": "IBULHSGFIN", "validity": "DAY", "transaction_type": "SELL", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 7712001, "quantity": 217}, {"product": "MIS", "order_type": "SL", "trigger_price": 13386.8, "price": 13386.7, "exchange": "NSE", "tradingsymbol": "PAGEIND", "validity": "DAY", "transaction_type": "SELL", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 136403716, "quantity": 12}, {"product": "MIS", "order_type": "SL", "trigger_price": 392.7, "price": 392.6, "exchange": "NSE", "tradingsymbol": "PETRONET", "validity": "DAY", "transaction_type": "SELL", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 136325636, "quantity": 423}, {"product": "MIS", "order_type": "SL", "trigger_price": 78.1, "price": 78.0, "exchange": "NSE", "tradingsymbol": "CROMPGREAV", "validity": "DAY", "transaction_type": "SELL", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 128023812, "quantity": 2128}, {"product": "MIS", "order_type": "SL", "trigger_price": 373.2, "price": 373.1, "exchange": "NSE", "tradingsymbol": "TVSMOTOR", "validity": "DAY", "transaction_type": "SELL", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 136279812, "quantity": 445}, {"product": "MIS", "order_type": "SL-M", "trigger_price": 788.0, "price": 0, "exchange": "NSE", "tradingsymbol": "IBULHSGFIN", "validity": "DAY", "transaction_type": "BUY", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 7712001, "quantity": 217}, {"product": "MIS", "order_type": "SL-M", "trigger_price": 13802.2, "price": 0, "exchange": "NSE", "tradingsymbol": "PAGEIND", "validity": "DAY", "transaction_type": "BUY", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 136403716, "quantity": 12}, {"product": "MIS", "order_type": "SL-M", "trigger_price": 404.8, "price": 0, "exchange": "NSE", "tradingsymbol": "PETRONET", "validity": "DAY", "transaction_type": "BUY", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 136325636, "quantity": 423}, {"product": "MIS", "order_type": "SL-M", "trigger_price": 80.4, "price": 0, "exchange": "NSE", "tradingsymbol": "CROMPGREAV", "validity": "DAY", "transaction_type": "BUY", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 128023812, "quantity": 2128}, {"product": "MIS", "order_type": "SL-M", "trigger_price": 384.7, "price": 0, "exchange": "NSE", "tradingsymbol": "TVSMOTOR", "validity": "DAY", "transaction_type": "BUY", "variety": "regular", "readonly": false, "tag": null, "instrument_token": 136279812, "quantity": 445}],
    CLIENT = {"api_key": "nas1u4zc1qf1x2x3", "partner_id": "ZMPGLW", "id": "146", "name": "BasketOrder"},
    REDIRECT_URL = "https://finhacks.in?request_token=gdqcmq2vmmgudimq3h31vx1k3la8plfb",
    REQUEST_TOKEN = "gdqcmq2vmmgudimq3h31vx1k3la8plfb";

  • sujith
    Hi @Ram,
    At what time did you try?
  • Ram
    I first tried an AMO at 9:12
    then a regular order at 9:20
  • Ram
    I use offsite order execution to prepare my orders and the keys tag,readonly,instrument_token are not added by me
  • sujith
    This seems to be off {"readonly": false} in your request.
  • sujith
    Hi @Ram,
    Try sending these also in string {"tag": null, "instrument_token": 7712001, "quantity": 217}
  • sujith
    Can you hard refresh and check now?
  • Ram
    Ram edited December 2016
    @sujith Works fine and it worked without including the readonly and tag keys
    My amo's got accepted.
This discussion has been closed.