Pages:
Author

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

newbie
Activity: 12
Merit: 0
Thanks so much, it works great...
sr. member
Activity: 529
Merit: 271
For some reason I can never get the BTC one to work with coinbase.
url: http://coinbase.com/api/v1/prices/buy

I try:
json.total.amount
amount

but nothing comes up

It seems that http ends up with CloudFlare redirects so the gadget gets some redirect HTML instead of JSON. Use https - https://coinbase.com/api/v1/prices/buy which is where it ends up after redirects. Only "amount" is not conclusive as there are several amounts, but json.total.amount works fine. And make sure that you you clear your JSON keys for field 1, 2 and 3 (when they cannot be resolved final amount can't be calculated correctly as well).
newbie
Activity: 12
Merit: 0
For some reason I can never get the BTC one to work with coinbase.

url: http://coinbase.com/api/v1/prices/buy

sample json:
{
  "subtotal": {
    "amount": "577.40",
    "currency": "USD"
  },
  "fees": [
    {
      "coinbase": {
        "amount": "5.77",
        "currency": "USD"
      }
    },
    {
      "bank": {
        "amount": "0.15",
        "currency": "USD"
      }
    }
  ],
  "total": {
    "amount": "583.32",
    "currency": "USD"
  },
  "amount": "583.32",
  "currency": "USD"
}


I try:
json.total.amount
amount

but nothing comes up
sr. member
Activity: 529
Merit: 271
how could I add a bitcoincharts.com's bitcoin.de ticker to your gadget?

The data is here:
http://bitcoincharts.com/markets/btcdeEUR.html

And the API:
http://bitcoincharts.com/about/markets-api/

I've tried to put http://api.bitcoincharts.com/v1/markets.json for secondary exchange URL (keeping bitstamp USD as primary) and "btcdeEUR.bid" for the sell JSON value but it does not seem to work. I'm quite sure I'm doing something wrong... thanks for any help!

Hi Glon,
unfortunately I don't think it's possible. You could do it by using something like json[0].close if the btcdeEUR position was always first (or nth) in the list, but as I can see the position of exchanges is not constant for each call, so you would need to loop over all elements and check symbol to find the right one... sorry.
full member
Activity: 181
Merit: 100
Hi,

how could I add a bitcoincharts.com's bitcoin.de ticker to your gadget?

The data is here:
http://bitcoincharts.com/markets/btcdeEUR.html

And the API:
http://bitcoincharts.com/about/markets-api/

I've tried to put http://api.bitcoincharts.com/v1/markets.json for secondary exchange URL (keeping bitstamp USD as primary) and "btcdeEUR.bid" for the sell JSON value but it does not seem to work. I'm quite sure I'm doing something wrong... thanks for any help!
newbie
Activity: 51
Merit: 0

Yeah, Windows gadgets are not really too debugable. Smiley If you have any invalid JSON keys under seconday exchange, try removing them.

That did the trick, thanks a ton for the help!
A donation from 1DNB.. should be ticking in soon. Smiley
sr. member
Activity: 529
Merit: 271

Sure. Use this as exchange rate JSON key: json.result.XXBTZEUR.c[0]


I did try that JSON path first, but I assumed it wasn't functioning since it still says N/A.

It still doesn't want to play nice, using the following primary exchange settings:
Code:
Exchange URL: https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR
Exchange rate JSON key: json.result.XXBTZEUR.c[0]
Ticker currency: EUR
Target currency:

Is there some kind of log available? It'd make it a lot easier to figure out why it isn't working. Smiley

Yeah, Windows gadgets are not really too debugable. Smiley If you have any invalid JSON keys under seconday exchange, try removing them.
newbie
Activity: 51
Merit: 0

Sure. Use this as exchange rate JSON key: json.result.XXBTZEUR.c[0]


I did try that JSON path first, but I assumed it wasn't functioning since it still says N/A.

It still doesn't want to play nice, using the following primary exchange settings:
Code:
Exchange URL: https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR
Exchange rate JSON key: json.result.XXBTZEUR.c[0]
Ticker currency: EUR
Target currency:

Is there some kind of log available? It'd make it a lot easier to figure out why it isn't working. Smiley
sr. member
Activity: 529
Merit: 271
Is there a way of making the kraken.com ticker work in your app?

Example URL: https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR
JSON looks like this, and first element of "c" is what I'm interested in
Code:
{"error":[],
 "result":{
    "XXBTZEUR":{
      "a":["540.70677","1"],
      "b":["539.00000","1"],
      "c":["539.00000","0.10000000"],
      "v":["1412.71346151","1448.52834016"],
      "p":["537.48576","538.17450"],
      "t":[5101,5348],
      "l":["502.10000","502.10000"],
      "h":["570.00000","570.00000"],
      "o":"568.98910"
    }
  }
}


Sure. Use this as exchange rate JSON key: json.result.XXBTZEUR.c[0]
newbie
Activity: 51
Merit: 0
Hi,

Is there a way of making the kraken.com ticker work in your app?

Example URL: https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR
JSON looks like this, and first element of "c" is what I'm interested in
Code:
{"error":[],
 "result":{
    "XXBTZEUR":{
      "a":["540.70677","1"],
      "b":["539.00000","1"],
      "c":["539.00000","0.10000000"],
      "v":["1412.71346151","1448.52834016"],
      "p":["537.48576","538.17450"],
      "t":[5101,5348],
      "l":["502.10000","502.10000"],
      "h":["570.00000","570.00000"],
      "o":"568.98910"
    }
  }
}
sr. member
Activity: 529
Merit: 271
A thought for a future version.  It is very handy to use individual instances for different exchanges, an optional top label would be great to help keep track.

You have done a great job, a donation will soon follow .. Smiley

Thanks! This is not a bad idea, I'll think about it.
newbie
Activity: 7
Merit: 0

A thought for a future version.  It is very handy to use individual instances for different exchanges, an optional top label would be great to help keep track.

You have done a great job, a donation will soon follow .. Smiley
full member
Activity: 162
Merit: 100
Eloncoin.org - Mars, here we come!
Thank you very much Domchi,
It Works great.

Keep the good work

Regards

Hephaestus

Can anyone send exactly the settings for bitstamp. It is a very usefull widget, but It is not work for me !!!

Hi Hephaestus,

with the last update, I put Bitstamp instructions on the main gadget page, under "Configuring exchanges and pools" section: http://domchi.cc/mybitcoins/

Or, in other words, use this settings for Bitstamp:

primary exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: bid (or whichever of the three below you want to see)
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid
sr. member
Activity: 529
Merit: 271
Excellent work! Your gadget has a very pretty user interface and I like it.
Although, anyone that works with sensitive information/wallets on their computer should read this:
http://nakedsecurity.sophos.com/2012/07/12/disable-windows-sidebar-gadgets/
before installing.
I'm not sure if this information is still pertinent/applicable, but last year I turned sidebar.exe off after reading this article.

Microsoft basically says that if you run malicious gadget, it is not too sandboxed as it has a bit more privileges than usual Javascript executed in IE. In Win8, they scrapped gadgets altogether and started pushing tiles and tabletization.

On the upside, this means that you're safe unless you really do run malicious gadget. Just by running sidebar.exe you're not at risk.

MyBitcoins is of course not malicious, and is open-source, so anyone who downloads it and knows a bit of Javascript can unzip it and look inside. That said, take care what gadgets you run, encrypt your wallet, and use cold wallet for cryptocoins you won't spend in the near future.
sr. member
Activity: 529
Merit: 271
Can anyone send exactly the settings for bitstamp. It is a very usefull widget, but It is not work for me !!!

Hi Hephaestus,

with the last update, I put Bitstamp instructions on the main gadget page, under "Configuring exchanges and pools" section: http://domchi.cc/mybitcoins/

Or, in other words, use this settings for Bitstamp:

primary exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: bid (or whichever of the three below you want to see)
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid
sr. member
Activity: 490
Merit: 250
Excellent work! Your gadget has a very pretty user interface and I like it.

Although, anyone that works with sensitive information/wallets on their computer should read this:

http://nakedsecurity.sophos.com/2012/07/12/disable-windows-sidebar-gadgets/

before installing.

I'm not sure if this information is still pertinent/applicable, but last year I turned sidebar.exe off after reading this article.
newbie
Activity: 28
Merit: 0
mining procedure see statistic real-time this make develop some be nice for 2014
hero member
Activity: 602
Merit: 500
In math we trust.
Great gadget!  Cheesy
I was looking for something like this some time ago...
full member
Activity: 162
Merit: 100
Eloncoin.org - Mars, here we come!
Can anyone send exactly the settings for bitstamp. It is a very usefull widget, but It is not work for me !!!
Thank you very much

 Smiley
legendary
Activity: 1098
Merit: 1000
Domchi,

Thanks for the update, especially the addition of multiple btc addresses as requested it works like a charm, for the first time in a while I have a complete total from my 20+ addresses and my current pool combined Smiley

Here's hoping the day comes when I can see a 'G' in mne, I wouldn't care about decimals then lol

Pages:
Jump to: