☰
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
13.2K
All Categories
0
Incidents
128
Node JS client
38
Go client
769
.Net API client
364
Kite Publisher
532
.Net / VBA / Excel (3rd party)
436
Algorithms and Strategies
970
Java client
1K
API clients
401
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
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?