Guest
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Menu
Home
Help
Login
Register
BitShares Forum
/
Main
/
Technical Support
/
PTS Latest Price using PHP
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: PTS Latest Price using PHP (Read 1499 times)
0 Members and 1 Guest are viewing this topic.
February 07, 2014, 01:28:36 am
Reply
#1
gigamike
Full Member
Posts: 80
BitShares:
gigamike
PTS Latest Price using PHP
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
BitShares Forum
/
Main
/
Technical Support
/
PTS Latest Price using PHP