BitShares Forum
Main => Technical Support => Topic started by: gigamike 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