Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    [ANN] Feathercoin price ticker

    Technical Development
    8
    18
    7621
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Davereplicant Regular Member last edited by

      [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

      1 Reply Last reply Reply Quote 0
      • A
        adamstgbit last edited by

        [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

        1 Reply Last reply Reply Quote 0
        • A
          adamstgbit last edited by

          i should add a buy now button and handle currency conversion for merchants :D

          1 Reply Last reply Reply Quote 0
          • M
            msmits last edited by

            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]

            1 Reply Last reply Reply Quote 0
            • K
              Kevlar Spammer last edited by

              [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!

              1 Reply Last reply Reply Quote 0
              • M
                msmits last edited by

                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]

                1 Reply Last reply Reply Quote 0
                • Bushstar
                  Bushstar last edited by

                  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.

                  Donate: 6hf9DF8H67ZEoW9KmPJez6BHh4XPNQSCZz

                  1 Reply Last reply Reply Quote 0
                  • M
                    msmits last edited by

                    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

                    [img]http://feathercoinfo.nl/wordpress.png[/img]

                    1 Reply Last reply Reply Quote 0
                    • S
                      StrangeAtoms last edited by

                      Would love to see this in a tutorial showing how to make this in a physical version for my room

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User last edited by

                        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.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post