Pages:
Author

Topic: Bitcoin Windows gadget which displays BTC and currency amounts - page 12. (Read 69317 times)

sr. member
Activity: 529
Merit: 271
Let us (CoinDesk) know when it is integrated  Grin

This is it, MyBitcoins gadget works with any JSON API. Anyone who wants to use it with CoinDesk just needs to enter the following in settings:
Exchange URL: http://api.coindesk.com/v1/bpi/currentprice/USD.json
JSON key name: rate

Do you perhaps plan to expose high/low/avg/volume values through API at one point?
member
Activity: 68
Merit: 10
CoinDesker
Let us (CoinDesk) know when it is integrated  Grin
sr. member
Activity: 529
Merit: 271
Memyself, thanks for the update!
newbie
Activity: 6
Merit: 0
CoinDesk's API has been published (they got back to me with a link).

The api is listed at http://www.coindesk.com/api/

I was able to set mine up with Exchange URL:
http://api.coindesk.com/v1/bpi/currentprice/USD.json

and JSON key:
rate

You can also specify other currencies in place of USD above. 
It seems to work fairly well and I'm glad to have the option to display a composite bitcoin value without the need to choose an exchange.
sr. member
Activity: 529
Merit: 271
Quote
Please note that this is a free API, and result data will be formatted using JSON.

MyBitcoins can chew any kind of JSON, so there should be no problem connecting once this becomes public.

For simple JSON, it works with just a key name, but for more complex JSON where you have several keys with the same name like on MtGox you can access it like in Javascript, i.e. "json.data.sell.value". You can even put some kind of evaluable Javascript in the field (though this has significant limits), like "Math.PI.toFixed(6)" to get PI rounded to 6 decimal places.

Anyway, drop me a line once the API becomes available if you have any trouble with it and we'll figure it out.
newbie
Activity: 6
Merit: 0
ok, so I contacted them and received this response.
Quote
Hi,

Thanks for your enquiry about API access to CoinDesk's Bitcoin Price Index.

As we just launched it, we still need to finalise a few things to ensure the API is stable and performant, as well as provide developer documentation.

We should be able to do this within the next few days, so we will be in touch next week with further information on gaining access.

Please note that this is a free API, and result data will be formatted using JSON.

Kind regards,

Jeremy

Hopefully they will let us know soon.
sr. member
Activity: 529
Merit: 271
Now that coindesk has developed its own Bitcoin Price Index at http://www.coindesk.com/price/ does anyone know if there is a way to use their exchange rate?

It seems that their API is not (yet?) public, they want interested parties to contact them directly to gain access to API.
newbie
Activity: 6
Merit: 0
Now that coindesk has developed its own Bitcoin Price Index at http://www.coindesk.com/price/ does anyone know if there is a way to use their exchange rate?
sr. member
Activity: 529
Merit: 271
Been using it this way for a while now and it's been great, but now run out of addresses (I have several investements/rigs and like to use individual addresses to keep track of them easier) so if you could add more on the next update it would be great.

If possible why not keep the existing pool settings and just add a new option to enter comma|pipe seperated addreses, that would keep functionality for existing users who just want pools and allow many addresses to be entered by those who want this.

I hear you. I'll add up to five pools/sources in the next version, and maybe something specific for retrieving address balances from blockchain.info (have to think about this a bit more though, so not promising anything).
legendary
Activity: 1098
Merit: 1000
This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. Smiley

Been using it this way for a while now and it's been great, but now run out of addresses (I have several investements/rigs and like to use individual addresses to keep track of them easier) so if you could add more on the next update it would be great.

If possible why not keep the existing pool settings and just add a new option to enter comma|pipe seperated addreses, that would keep functionality for existing users who just want pools and allow many addresses to be entered by those who want this.
sr. member
Activity: 529
Merit: 271
Hi everybody,

the new versions of all gadgets are out. This is major and recomended update with bugfixes and quite a bit of new features.

As always, visit the gadget page to download it: http://domchi.cc/mybitcoins

Please note that from now on you can subscribe to be notified about updates by e-mail.
And as a bonus, here's a tip how to use this gadget to retrieve data from Google Docs: http://domchi.cc/mybitcoins/tips.htm
sr. member
Activity: 529
Merit: 271
Hi guys,

it seems that MtGox has switch to Cloudflare (cloud anti-DDOS and content distribution network) which caused gadget to fail retrieving exchange rates temporarily (for an hour or so). The problems with BTCGuild are also caused by Cloudflare, and in the near future there might be problems retrieving exchange rates from MtGox, so I'm watching closely.

In any case, please remember that MyBitcoins gadget is made to be extremely configurable, and it's very simple to switch to another exchange. I've already posted this a few replies back, but here goes again:

BTC-E
exchange URL: https://btc-e.com/api/2/btc_usd/ticker
exhange rate JSON key: sell
field 1 JSON key: sell
field 2 JSON key: last
field 3 JSON key: buy

Vircurex
exchange URL: https://vircurex.com/api/get_info_for_1_currency.json?base=BTC&alt=USD
exhange rate JSON key: lowest_ask
field 1 JSON key: lowest_ask
field 2 JSON key: last_trade
field 3 JSON key: highest_bid

Bitstamp
exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: lowest_ask
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid
sr. member
Activity: 529
Merit: 271
Gadget has some difficulty connecting to btcguild API currently... anyone else?

I was actually looking at BTCGuild since you've mentioned it, but I have no good and permanent fix. It seems that BTCGuild recently started using CloudFlare DDOS protection which displays some sort of Javascript challenge which gadget, not being browser, seems to fail. One thing I found that helps - sometimes and for a while - is to load pool API URL manually in Internet Explorer. Internet Explorer answers the challenge and this sometimes fixes things. If it doesn't, try rebooting after you've done that. No guarantees though - it's really behaving a bit strange.  Sad
full member
Activity: 181
Merit: 100
Gadget has some difficulty connecting to btcguild API currently... anyone else?
sr. member
Activity: 529
Merit: 271
Try this... use one of the pool slots and enter this:

Pool API URL: http://blockchain.info/address/1KeBs4HBQzkdHC2ou3gpyGHqcL7aKzwTve?format=json
Unpaid amount JSON key: json.final_balance/100000000

(Obviously, use your own address in URL.)

This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. Smiley

I currently have all my BTC in a bitcoin client wallet. I don't suppose you could get the balance of this wallet via a blockchain URL? But if yes, how?

This will work no matter which client you use, since all your transactions are registered in Bitcoin blockchain. Your bitcoins are not "in your wallet", only your private key required to spend them is. When you start your client, it won't display the correct balance until it downloads all of the blockchain and calculates your balance based on all transactions on your Bitcoin addresses. Blockchain.info can do the same - it gives you paid, spent and final balance of any Bitcoin address.

If you're using standard bitcoin-qt client, go to "Receive coins" and there you can see all your addresses.
legendary
Activity: 1098
Merit: 1000
...
An alternative could be to enter BTC address(es), and then just add to them the 'unpaid' balances from pools
...

Try this... use one of the pool slots and enter this:

Pool API URL: http://blockchain.info/address/1KeBs4HBQzkdHC2ou3gpyGHqcL7aKzwTve?format=json
Unpaid amount JSON key: json.final_balance/100000000

(Obviously, use your own address in URL.)

This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. Smiley

Works perfectly, thank you Smiley

Donation sent !
full member
Activity: 181
Merit: 100
I find that I frequently have to change the 'correction' box as I receive BTC from sources other than the usual pools (alt coins), exchanges plus I might be buying and selling things

An alternative could be to enter BTC address(es), and then just add to them the 'unpaid' balances from pools

IE.
Wallet Contains 10
BTCGuilld Unpaid 0.5

Widget shows 10.5

If I then buy something for 5 out of the wallet it changes to 5.5

This way it always shows your net assets.

Try this... use one of the pool slots and enter this:

Pool API URL: http://blockchain.info/address/1KeBs4HBQzkdHC2ou3gpyGHqcL7aKzwTve?format=json
Unpaid amount JSON key: json.final_balance/100000000

(Obviously, use your own address in URL.)

This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. Smiley

I currently have all my BTC in a bitcoin client wallet. I don't suppose you could get the balance of this wallet via a blockchain URL? But if yes, how?
sr. member
Activity: 529
Merit: 271
It's strange that you get changes between refreshes; that could indeed signal that it takes a long time to get response from one of the APIs, typically all calls complete during a few seconds. Also, check if both mining and exchange data intervals are set to ten minutes. If your exhange update interval is shorter than 600 seconds (10 minutes), it could be the issue with exchange.

Nope both times are set to 10 minutes. Just now the gadget would not display any mining data even after 5 refreshes so I left it be. After a few minutes it finally caught on, but I bet it will again lose the mining data briefly soon. It's weird.

I'm not sure that anything can be done from in gadget to alleviate this, it looks like either API or network/connectivity/caching proxy problem. I'll try polling my old BTCGuild account for a few days to see if I can reproduce this.

Note that it's normal for gadget to show N/A or 0 for a bit when it refreshes, especially if you have more URLs, but if this lasts it means that it's getting something unexpected in response or not getting response at all. I've seen something similar when polling data from Google Docs API, but I haven't been able to find a cause so far, so any example that's reproducible is precious to me.
full member
Activity: 181
Merit: 100
I find that I frequently have to change the 'correction' box as I receive BTC from sources other than the usual pools (alt coins), exchanges plus I might be buying and selling things

An alternative could be to enter BTC address(es), and then just add to them the 'unpaid' balances from pools

IE.
Wallet Contains 10
BTCGuilld Unpaid 0.5

Widget shows 10.5

If I then buy something for 5 out of the wallet it changes to 5.5

This way it always shows your net assets.

Great idea!
sr. member
Activity: 529
Merit: 271
I find that I frequently have to change the 'correction' box as I receive BTC from sources other than the usual pools (alt coins), exchanges plus I might be buying and selling things

An alternative could be to enter BTC address(es), and then just add to them the 'unpaid' balances from pools

IE.
Wallet Contains 10
BTCGuilld Unpaid 0.5

Widget shows 10.5

If I then buy something for 5 out of the wallet it changes to 5.5

This way it always shows your net assets.

Try this... use one of the pool slots and enter this:

Pool API URL: http://blockchain.info/address/1KeBs4HBQzkdHC2ou3gpyGHqcL7aKzwTve?format=json
Unpaid amount JSON key: json.final_balance/100000000

(Obviously, use your own address in URL.)

This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. Smiley
Pages:
Jump to: