☰
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
157
Node JS client
41
Go client
795
.Net API client
385
Kite Publisher
537
.Net / VBA / Excel (3rd party)
463
Algorithms and Strategies
1K
Java client
1.1K
API clients
407
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?