I just fired my first API call to place a order to BUY a stock, and I was expecting to receive a POSTBACK url call to my server. I have just put a console.log(" received postback") logging to see if i get any response. I double checked the setup but it seems i am not getting the response. BUY order is succesfully fired and I got order_id
Do you need client ID and Api Key and is it ok to share it in this forum. Is there any other way to contact support in cases like the above for a faster resolution
Ok. I read the FAQ and I still need some help. I have merely starting with a handshake of all the ends. I just put a console logging on the server and tested it with my restclient and use the following structure for testing and it is working fine.
Only 1 difference that i notice is I have setup my HTTPS on port 3000 and your (faq)setup uses 443. However Zerodha dashboard did not complain while setting the POSTBACK url.
Couple of more things: I changed the URL to match the example "/addorder" to "/post" Still does'nt work. Now can someone confirm (1) if the port HAS to be 443? (2) I dont have a domain name yet, therefore punched the "https://" , is this allowed ?
POST https://xxx:yyy/addorder
Content-Type: application/json
{
"user_id":"AB0012",
"app_id":1234,
"checksum":"1ebfd6d8a3d40c36722b3bfbf",
"placed_by":"AB0012",
"order_id":"210709003691276",
"exchange_order_id":"1300000015536862",
"parent_order_id":null,
"status":"UPDATE",
"status_message":null,
"status_message_raw":null,
"order_timestamp":"2021-07-09 15:00:57",
"exchange_update_timestamp":"2021-07-09 15:00:57",
"exchange_timestamp":"2021-07-09 15:00:57",
"variety":"regular",
"exchange":"NSE",
"tradingsymbol":"SBIN",
"instrument_token":779521,
"order_type":"LIMIT",
"transaction_type":"BUY",
"validity":"DAY",
"product":"MIS",
"quantity":0,
"disclosed_quantity":0,
"price":100,
"trigger_price":0,
"average_price":0,
"filled_quantity":0,
"pending_quantity":1,
"cancelled_quantity":0,
"market_protection":0,
"meta":{},
"tag":null,
"guid":"7831XMQ"
}
I changed the URL to match the example
"/addorder" to "/post"
Still does'nt work.
Now can someone confirm
(1) if the port HAS to be 443?
(2) I dont have a domain name yet, therefore punched the "https://" , is this allowed ?
https://ip-address:port
i tested "https://x.x.x.x/port" from my rest client and it continues to work
Redirect URL however worked even with port 3000, since i migrated to 443, it continues to work on new port 443
Any suggestions