Skip to content

Commit 35cb00f

Browse files
committed
Merge
2 parents 4867826 + fd07eb0 commit 35cb00f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kiteconnect.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class KiteConnect {
102102
private $_root = "https://api.kite.trade";
103103
private static $_login = "https://kite.trade/connect/login";
104104
private static $_date_fields = ["order_timestamp", "exchange_timestamp", "created", "last_instalment", "fill_timestamp", "timestamp", "last_trade_time"];
105+
const _version = 3.0;
105106

106107
// API route map.
107108
private $_routes = [
@@ -854,7 +855,7 @@ private function _request($route, $method, $params=null) {
854855
$headers = "Accept-Language: en-US,en;q=0.8\r\n" .
855856
"Accept-Encoding: gzip, deflate\r\n" .
856857
"Accept-Charset: UTF-8,*;q=0.5\r\n" .
857-
"User-Agent: phpkiteconnect\r\n" .
858+
"User-Agent: phpkiteconnect/".self::_version."\r\n" .
858859
"X-Kite-Version: 3\r\n";
859860

860861
if ($this->api_key && $this->access_token) {

0 commit comments

Comments
 (0)