Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/KiteConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ private function request(string $route, string $method, array $params, string $h
$request_headers = [
"Content-Type" => $content_type,
"User-Agent" => "phpkiteconnect/" . self::VERSION,
"X-Kite-Version" => 3,
"X-Kite-Version" => $this->kiteVersion,
];

if ($this->apiKey && $this->accessToken) {
Expand Down
10 changes: 5 additions & 5 deletions tests/KiteTickerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function setUp(): void
}

/**
* Test LTP mode tick data - matches TypeScript ltpModeTick test
* Test LTP mode tick data
*/
public function testLtpModeTick()
{
Expand All @@ -35,7 +35,7 @@ public function testLtpModeTick()
}

/**
* Test Quote mode tick data - matches TypeScript quoteModeTick test
* Test Quote mode tick data
*/
public function testQuoteModeTick()
{
Expand All @@ -54,7 +54,7 @@ public function testQuoteModeTick()
}

/**
* Test Full mode tick data - matches TypeScript fullModeTick test
* Test Full mode tick data
*/
public function testFullModeTick()
{
Expand All @@ -73,15 +73,15 @@ public function testFullModeTick()
}

/**
* Read binary packets - matches TypeScript readBufferPacket function
* Read binary packets
*/
private function readBufferPacket(string $fileName): string
{
return file_get_contents(__DIR__ . '/' . $fileName);
}

/**
* Convert buffer to binary buffer array - matches TypeScript toArrayBuffer function
* Convert buffer to binary buffer array
*/
private function toArrayBuffer(string $tickerMode): string
{
Expand Down
Loading