Author Topic: PTS Latest Price using PHP  (Read 776 times)

0 Members and 1 Guest are viewing this topic.

Offline gigamike

PTS Latest Price using PHP
« on: February 07, 2014, 01:28:36 am »
Guys,

I hope you can help me. I setup a cryptsy.com ticker using php. What i did was i have a cron that runs every minute and cURL on http://pubapi.cryptsy.com/api.php?method=singlemarketdata&marketid=119 and save its data. And on my site i have an ajax with setInterval for 5 seconds to display latest price.

Is there a better way for real time. I know websocket or streaming but i cant get the logic. Do you have any sample using php?

Thanks,

Mike