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

0 Members and 1 Guest are viewing this topic.

Offline gigamike

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