☰
Login
Signup
Home
›
General
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.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
December 2016
Ram
December 2016
sujith
Kite publisher - NON STRING VALUE IN JSON REQUEST
Ram
November 2016
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:
publisher
sujith
November 2016
Hi Ram,
Is this happening now?
We just checked and it is working fine.
Ram
November 2016
@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
December 2016
edited December 2016
@sujith
I still get the error and this is the screenshot
My API key is nas1u4zc1qf1x2x3
Ram
December 2016
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
December 2016
Hi
@Ram
,
At what time did you try?
Ram
December 2016
I first tried an AMO at 9:12
then a regular order at 9:20
Ram
December 2016
I use offsite order execution to prepare my orders and the keys tag,readonly,instrument_token are not added by me
sujith
December 2016
This seems to be off {"readonly": false} in your request.
sujith
December 2016
Hi
@Ram
,
Try sending these also in string {"tag": null, "instrument_token": 7712001, "quantity": 217}
sujith
December 2016
Can you hard refresh and check now?
Ram
December 2016
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.
Is this happening now?
We just checked and it is working fine.
But I got the error at the start of the day and I used basket order to place the order.
I still get the error and this is the screenshot
My API key is nas1u4zc1qf1x2x3
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";
At what time did you try?
then a regular order at 9:20
Try sending these also in string {"tag": null, "instrument_token": 7712001, "quantity": 217}
My amo's got accepted.