Bitcoin Forum

Bitcoin => Project Development => Topic started by: SidJames on September 20, 2014, 10:26:09 AM



Title: Simple javascript realtime cryptsy ticker - free :)
Post by: SidJames on September 20, 2014, 10:26:09 AM
Here's a simple ticker I built to get the last trade price for a given market from Cryptsy's pusher feed.
The example is set up for DOGE, but just change the market id to switch to any other currency.

http://jsfiddle.net/12rasuxa/7/

Hope the community find this useful :)


Title: Re: Simple javascript realtime cryptsy ticker - free :)
Post by: ADcoin.me on September 20, 2014, 10:50:01 AM
Thank you! :D But it stays at "Waiting on data..." at my end.


Title: Re: Simple javascript realtime cryptsy ticker - free :)
Post by: SidJames on September 20, 2014, 10:56:18 AM
It will say that until a trade notification is received. Depending how active the market you have it set to is will determine how long you have to wait to see a change. Working fine for me set to DOGE.
This only waits for notice of a trade occurring, it can't make the market trade faster. :)


Title: Re: Simple javascript realtime cryptsy ticker - free :)
Post by: ADcoin.me on September 20, 2014, 04:20:06 PM
ahh understood. :) What market ID is for btc/usd and how can we find market ID's?


Title: Re: Simple javascript realtime cryptsy ticker - free :)
Post by: SidJames on September 20, 2014, 07:00:33 PM
the way to find market id's on cryptsy is to look at the number at the end of the url when viewing the market.
for example the link for BTC/USD is https://www.cryptsy.com/markets/view/2, meaning the market id is 2.
hope that  helps :)