Pages:
Author

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

sr. member
Activity: 516
Merit: 268
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: 516
Merit: 268

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: 516
Merit: 268
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: 516
Merit: 268
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: 516
Merit: 268
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: 516
Merit: 268
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

sr. member
Activity: 516
Merit: 268
It was more for the dollar amount, just thought it would be nice to have it as 123,456.78 rather than 123456.7 just an aesthetic thing really it's probably only me that's so anal Smiley

I didn't think about the width restriction, but one option could be to use symbols so BTC would be BTC and USD would be $ etc that would free up 2 more characters

In the end I didn't do this, as I figured that maximum of 8 digits is still not too big to be unreadable. But then I started thinking about Winklewii and how 8 digits might not be enough for them as they own 1% of all Bitcoin and so on; poor Winklewii would not be able to use this gadget!

So I made sure that if the number is too big (or too small) this gets handled in satisfactory way by appending the correct symbol of the order of magnitude (see http://en.wikipedia.org/wiki/Order_of_magnitude#Uses). Yes, all of them are now supported.

Now, in the end it turns out that for Winklewii 8 digits is still more than enough. But if you take all Bitcoin currently in existence, you can see how much they're worth in USD, and previously you weren't, so I'd say it was worth it:

sr. member
Activity: 516
Merit: 268
Hi guys!

I hear you about Bitstamp, and the new update is out which fixes that. And not just that. This update brings a bunch of new features and a few bugfixes - actually, this is the version with the most new stuff since version 1.

First and foremost, this version introduces support for Bitstamp. I'm not sure if the way Bitstamp API behaves when it's sent an extra parameter changed recently, or if it didn't work for some time now, buy anyway, it's fixed now.

Big new feature are trailing stop alerts. We had alerts in a sense that you could have the value in the bottom field turn green or red when the price crosses it. However, now you can trigger it when the trend changes. Say that the price is slowly rising, and you set your trailing stop to 20. When the trend reverses and the price falls to less then 20 from the highest recorded price, it turns red. This is a good way to see trend change at a glance and not have to move your stop loss manually every now and then. Note that MyBitcoins will not buy and sell for you; it will simply change color to alert you. You have to do your own trading. Smiley

Another significant feature is the ability to retrieve Bitcoin balance for one or more addresses. This was possible before by using blockchain.info API as one or more of the pools, but now it's as simple as pasting as many Bitcoin addresses as you want. Some people were manually updating correction field and none of that is needed anymore.

This is far from all that is new, but to keep it brief, these bugs were squashed:
  • although originally correction could be a negative number, at some point this stopped working due to incorrect regex which is now corrected
    default exchange rate key for trading was corrected as the MtGox API changed in the meantime
  • if only paid or only unpaid JSON key for pools was used, value was not calculated; a bit impractical workaround to use both fields is no longer needed

There are also a few other features:
  • support for very large or very small values (more than 9 digits or less than 8 decimals) using for example 1G for 1,000,000,000
  • two additional pools added as some a bit megalomanic people were complaining that three pools are not enough
  • now using MtGox API 2 ticker_fast method instead of "slower" ticker

You can download the new version on the gadget page: http://domchi.cc/mybitcoins/
legendary
Activity: 1137
Merit: 1035
Bitcoin accepted here
I'm going mad! I'm constantly getting the same error as Roccker!

My settings:
trading
https://www.bitstamp.net/api/ticker/
sell (also tried json.ticker.sell)

it says 'BTC: N/A' and 'USD: N/A'
Pages:
Jump to: