[DEV] APIv2 - Feathercoin Application programming interface v2
-
[quote name=“kris_davison” post=“31497” timestamp=“1382012032”]
Looks great you have added some really usefull stuff here. This could make it much more simple to check for payment transaction confirms.
Can I ask what data you are using to work out the exchange rates?Alse the address balance part after how many confirms On a new transaction is the balance considered to be updated? Kris
[/quote]Fiat currency values are pulled from the following location.
[url=http://currency-api.appspot.com/]http://currency-api.appspot.com/[/url]
Value of Bitcoin and Feathercoin are pulled from BTC-eThe balance shown for an address is the total in - total out. The balance shows as soon as the transaction has been accepted into the blockchain.
You can check the confirms of the transactions in with the getconflasttx option. In the old API this was being parsed from the explorer HTML. In the new API I actually extended the explorer’s API to include a call of the same name but get the data from the database.
Note that the explorer is currently being rebuilt so it looks as if it is in the past at the moment.
-
That’s great help thanks very much :-)
-
I may be missing something here but I tried the example.
https://api.feathercoin.com/?output=balance&address=6pde7co3E5neUGDmtZctpATZ2u1ydgnoHf&json=1Which results in 0.1
I then tried this example for the same address
Well its a cobbled together example as the one on API page seems incomplete.https://api.feathercoin.com?output=getconflasttx&address= 6pde7co3E5neUGDmtZctpATZ2u1ydgnoHf
This results in 0 confirms.
Is this correct?
-
[quote name=“kris_davison” post=“31531” timestamp=“1382027128”]
Is this correct?
[/quote]Fixed it for you, you missed a / & added an extra space it looks like.
https://api.feathercoin.com/?output=getconflasttx&address=6pde7co3E5neUGDmtZctpATZ2u1ydgnoHf
-
Ah that’s better cheers.
-
For the market I have added another feature to the API which probably should have been their already. Fiat to Feathercoin as well as Feathercoin to fiat. It is not hard to to find one from the other but to save people the trouble the API will serve either or to make life easier :)
This shows the value of all supported currencies in Feathercoin
[url=http://api.feathercoin.com/?output=ftccurrencies&amount=1]http://api.feathercoin.com/?output=ftccurrencies&amount=1[/url]This shows the value of each currency in Feathercoin separately.
[url=http://api.feathercoin.com/?output=ftcaud&amount=1&json=1]http://api.feathercoin.com/?output=ftcaud&amount=1&json=1[/url]
[url=http://api.feathercoin.com/?output=ftceur&amount=1&json=1]http://api.feathercoin.com/?output=ftceur&amount=1&json=1[/url]
[url=http://api.feathercoin.com/?output=ftcgbp&amount=1&json=1]http://api.feathercoin.com/?output=ftcgbp&amount=1&json=1[/url]
[url=http://api.feathercoin.com/?output=ftcnzb&amount=1&json=1]http://api.feathercoin.com/?output=ftcnzb&amount=1&json=1[/url]
[url=http://api.feathercoin.com/?output=ftcusd&amount=1&json=1]http://api.feathercoin.com/?output=ftcusd&amount=1&json=1[/url] -
Is it possible there is a problem with the api for the stats ?
It seems to be stuck since a few hours witht he same information:
{“currblk”:122949,“khs”:5947057.792,“retblk”:122976,“blkstoret”:27,“exptimeperblk”:134.76666666667,“nowdiff”:181.57472645,“nextdiff”:186.30479827282,“timetoret”:3638.7,“days”:0,“hours”:1,“min”:0,“sec”:38,“totcm”:24589800}It is not the same info than the stats who is maybe also stuck…
Thanks
-
[quote name=“Ilocans” post=“38054” timestamp=“1385845619”]
Is it possible there is a problem with the api for the stats ?
It seems to be stuck since a few hours witht he same information:
{“currblk”:122949,“khs”:5947057.792,“retblk”:122976,“blkstoret”:27,“exptimeperblk”:134.76666666667,“nowdiff”:181.57472645,“nextdiff”:186.30479827282,“timetoret”:3638.7,“days”:0,“hours”:1,“min”:0,“sec”:38,“totcm”:24589800}It is not the same info than the stats who is maybe also stuck…
Thanks
[/quote]Hi Ilocans, there is problem with the site, (reported last night). Hoping that is going to back up soonest.
-
Hi Bushstar,
Are you planning to add new features in your api ?
I am working on an android application already using it to get value of what I mined.I would like to know if it is possible to get:
- Network hashrate for the past few hours or days (and we could specify the how long in parameter),
- Difficulty for the past few hours or days (and we could specify the how long in parameter),
- Value in currency the past few hours or days (and we could specify the how long in parameter),
- Address balance details: all received coins with the date and all sent coins with date for an address.
I think theses features could be usefull not only for me.
Thanks.
-
Hi Ilocans,
did this all the API stuff get sorted? or you awaiting (0.8.5) release to die down? If so I’ll message Bush and see what he thinks is in the pipeline.
-
Hi,
I’m wondering if you need the price of FTC by the minute? I currently have some scripts run under Windows Azure, and 3 VM instances to handle the caches & returning of data via Java 7. I have around 2 weeks worth of data so far, I will try to fill up the gap by getting past data from sites like BitCoinWisdom…
I don’t mind removing the query check and publicizing the API just for Feathercoin :P
[url=http://bitbothost.cloudapp.net:8080/?Type=Chart&hours=168&depth=21&nonce=1390032751754¤cypair=ftc_btc&serverAuthorization=ZoM/jrcjdePmbiSr2Zb4uwK2v9M=&ExchangeSite=BTCe]http://bitbothost.cloudapp.net:8080/?Type=Chart&hours=168&depth=21&nonce=1390032751754¤cypair=ftc_btc&serverAuthorization=ZoM/jrcjdePmbiSr2Zb4uwK2v9M=&ExchangeSite=BTCe[/url] -
Out of curiosity, was there consideration about making the API more REST-y? There are cases where query string parameters are okay in the REST approach, but it by and large eliminates all that URL noise.