☰
Login
Signup
Home
›
PHP client
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
14.1K
All Categories
0
Incidents
158
Node JS client
43
Go client
801
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
466
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
September 2017
jitendra
September 2017
sujith
Getting error while order cancellation in php
jitendra
September 2017
in
PHP client
As per the kiteconnect.php , I am sending the following parameters to cancel an order.
$api_key = $_POST["api_key"];
$access_token = $_POST["access_token"];
$orderId= $_POST['orderId'];
$kite = new KiteConnect($api_key);
$kite->orderCancel('$orderId',null,[
"api_key" => $api_key,
"access_token" => $access_token
],"regular");
I am getting following error.
Fatal error: Uncaught GeneralException (404) 'Route not found' thrown in C:\xampp\htdocs\kiteconnect.php on line 587
Please let me know , where I am wrong.
sujith
September 2017
Hi
@jitendra
,
Can you post the params what you are sending?
Are you sending variety?
jitendra
September 2017
Hi Sujith, I think there was some problem with orderId. When I removed the Quotes, it is working fine.
This discussion has been closed.
Can you post the params what you are sending?
Are you sending variety?