☰
Login
Signup
Home
›
Market data (WebSockets)
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
127
Node JS client
38
Go client
768
.Net API client
362
Kite Publisher
532
.Net / VBA / Excel (3rd party)
437
Algorithms and Strategies
966
Java client
1K
API clients
400
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
General
In this Discussion
May 2023
rakeshr
May 2023
luke
No data returned, where is the writing error? Novice
luke
May 2023
in
Market data (WebSockets)
php
$msg = ['a'=>'subscribe','v'=>array('408065','884737')];
$msg = json_encode($msg);
$con->send($msg);
linux:
Workerman[usmarket2.php] start in DEBUG mode
------------------------------------- WORKERMAN --------------------------------------
Workerman version:4.0.19 PHP version:7.3.31
-------------------------------------- WORKERS ---------------------------------------
proto user worker listen processes status
tcp root none none 1 [OK]
--------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.
string(85) "{"type": "instruments_meta", "data": {"count": 85893, "etag": "W/\"64755886-1b51\""}}"
string(59) "{"type":"app_code","timestamp":"2023-05-30T13:31:46+05:30"}"
string(55) "{"type":"error","id":"","data":"error parsing request"}"
Note: Why can't screenshots be taken? Difficult to express needs
Tagged:
websockets
luke
May 2023
No data, do you need to subscribe to certain market quotes to query the corresponding stock codes
luke
May 2023
Is the data compressed? What function should I use to decompress and read it?
rakeshr
May 2023
It's a raw binary tick packets.
The documentation
explains more about this.
PHPkiteconnect client don't have Websocket streaming implementation by default. You can take reference from this
PHP ticker implementation package
.
Sign In
or
Register
to comment.
PHPkiteconnect client don't have Websocket streaming implementation by default. You can take reference from this PHP ticker implementation package.