[ANN] Feathercoin price ticker
-
.
-
[quote name=“adamstgbit” post=“31888” timestamp=“1382238549”]
testing
10USD= [img]http://thebitcoinreview.com/feathercoin_price_img.php?output=ftc&amount=10[/img]k i think i got the bugs worked out
[/quote]Does this mean that as a merchant I can select my fiat currency and set a price for an item and the buy now and reserve price will reflect feather coin to given fiat price?
If not that needs to happen!
Excuse me if I’ve missed something
-
[quote name=“Davereplicant” post=“32369” timestamp=“1382580004”]
[quote author=adamstgbit link=topic=4093.msg31888#msg31888 date=1382238549]
testing
10USD= [img]http://thebitcoinreview.com/feathercoin_price_img.php?output=ftc&amount=10[/img]k i think i got the bugs worked out
[/quote]Does this mean that as a merchant I can select my fiat currency and set a price for an item and the buy now and reserve price will reflect feather coin to given fiat price?
If not that needs to happen!
Excuse me if I’ve missed something
[/quote]
$20 = [img]http://thebitcoinreview.com/feathercoin_price_img.php?output=ftc&amount=20[/img]merchant sets a fixed USD price and it displays the equivalent FTC
-
i should add a buy now button and handle currency conversion for merchants :D
-
This is what i was looking for! Can someone please help me out with this? I need to encode the json output to readable output…
[url=http://api.feathercoin.com/?output=eur&amount=1&json=1]http://api.feathercoin.com/?output=eur&amount=1&json=1[/url]
Can i use this example for doing that?
[url=https://code.google.com/p/json-simple/wiki/EncodingExamples]https://code.google.com/p/json-simple/wiki/EncodingExamples[/url] -
[quote name=“msmits” post=“39090” timestamp=“1386080096”]
This is what i was looking for! Can someone please help me out with this? I need to encode the json output to readable output…[url=http://api.feathercoin.com/?output=eur&amount=1&json=1]http://api.feathercoin.com/?output=eur&amount=1&json=1[/url]
Can i use this example for doing that?
[url=https://code.google.com/p/json-simple/wiki/EncodingExamples]https://code.google.com/p/json-simple/wiki/EncodingExamples[/url]
[/quote]I’ve used that library before, and I gotta say I kinda prefer Jackson’s JSON library: [url=http://wiki.fasterxml.com/JacksonHome]http://wiki.fasterxml.com/JacksonHome[/url]
It’s much easier to use the bindings and have your objects match your JSON where possible, and use annotations when it’s not to map the differences, than trying to write a SAX parser implementation, IMO. YMMV. Let us know how you get along!
-
Hi Guys!
It’s working! Maybe the code is not perfect, but good for me! I will also create a Feathercoin Ticker Wordpress widget! Ofcourse with a nice look and images! This example is only plain text!
I will share this with you guys, maybe someone can use this for his website!
[code]// Get the value of FTC in all currencies
$json = file_get_contents(‘http://api.feathercoin.com/?output=currencies&amount=1’);
// parse (decode)
$decoded = json_decode($json);
//uncomment for showing dump
//var_dump($decoded);// echo the value
?>EUR eur, 0, 5);
?>USD usd, 0, 5);
?>[/code]
-
If you supply true as a second argument to json_decode you will get back an associative array. This make it easier to handle the results. Take a look below.
[code]// Get the value of FTC in all currencies
$json = file_get_contents(‘http://api.feathercoin.com/?output=currencies&amount=1’);
// parse (decode)
$decoded = json_decode($json, true);
//uncomment for showing dump
//var_dump($decoded);// echo the value
?>EUR
USD
[/code]For reference…
This gives the value of 10 Feathercoin in GBP
[url=http://api.feathercoin.com/?output=gbp&amount=10&json=1]http://api.feathercoin.com/?output=gbp&amount=10&json=1[/url]This gives the value of 10 GBP in Feathercoin
[url=http://api.feathercoin.com/?output=ftcgbp&amount=10&json=1]http://api.feathercoin.com/?output=ftcgbp&amount=10&json=1[/url]There is also AUD, EUR, NZD and USD.
-
Thank you Bushstar! :D
I’ve made some progression with my wordpress widget, need to fix some details but it’s the first version!
The ‘coin’ in the right is animted when you hover it, you can click to view more details / charts.
What do you guys think? ;D -
Would love to see this in a tutorial showing how to make this in a physical version for my room
-
It would be possible to put a ftc ticker in the header for the .com here? Maybe top right? Could it be set up so each user is able to set it to their own local currency?
I think that would be neat. I know its all ready on the chatbox page, but I just thought It would be kewl to have it in the header and have it customisable for registered users.