Domchi (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
September 12, 2013, 10:55:55 PM |
|
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.
|
|
|
|
memyself
Newbie
Offline
Activity: 6
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 08, 2013, 02:31:26 PM |
|
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.jsonand 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.
|
|
|
|
Domchi (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 08, 2013, 03:37:47 PM |
|
Memyself, thanks for the update!
|
|
|
|
bitkoof
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 68
Merit: 10
CoinDesker
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 09, 2013, 11:08:45 AM |
|
Let us (CoinDesk) know when it is integrated ![Grin](https://bitcointalk.org/Smileys/default/grin.gif)
|
|
|
|
Domchi (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 09, 2013, 11:27:52 AM |
|
Let us (CoinDesk) know when it is integrated ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) 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.jsonJSON key name: rate Do you perhaps plan to expose high/low/avg/volume values through API at one point?
|
|
|
|
DonGateley
Newbie
Offline
Activity: 7
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 20, 2013, 09:25:35 PM |
|
I am using the exchange URL https://data.mtgox.com/api/2/BTCUSD/money/ticker that was the default on installation of the widget. I am only getting the BTC and USD rows displayed. I would like to see the secondary rows sell (json.dat.sell.value), last (json.data.last.value), and buy (json.data.buy.value) but they are not showing up. I can't figure out what to do to get those secondary rows to show up. Any help greatly appreciated.
|
|
|
|
Domchi (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 20, 2013, 10:19:48 PM |
|
I am using the exchange URL https://data.mtgox.com/api/2/BTCUSD/money/ticker that was the default on installation of the widget. I am only getting the BTC and USD rows displayed. I would like to see the secondary rows sell (json.dat.sell.value), last (json.data.last.value), and buy (json.data.buy.value) but they are not showing up. I can't figure out what to do to get those secondary rows to show up. Any help greatly appreciated. Hi Don, simply hover over the gadget, wait for the icons to appear, and click on the one between the "x" (close gadget) and options icon.
|
|
|
|
DonGateley
Newbie
Offline
Activity: 7
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 22, 2013, 08:40:33 PM |
|
I am using the exchange URL https://data.mtgox.com/api/2/BTCUSD/money/ticker that was the default on installation of the widget. I am only getting the BTC and USD rows displayed. I would like to see the secondary rows sell (json.dat.sell.value), last (json.data.last.value), and buy (json.data.buy.value) but they are not showing up. I can't figure out what to do to get those secondary rows to show up. Any help greatly appreciated. Hi Don, simply hover over the gadget, wait for the icons to appear, and click on the one between the "x" (close gadget) and options icon. Thanks, I had found that, the wrench icon, but can't figure out what to do within it to make it work. My interest is trading but If I check "trading" all I get for USD is N/A. I have to check "mining" to get a value to appear in USD. This puzzles me. Also, the default setup within the wrench only gives me the rows labeled BTC and USD. I'd like also to see sell, last and buy but can't tell how to effect that. Any help appreciated, thanks.
|
|
|
|
Domchi (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 22, 2013, 09:40:04 PM |
|
simply hover over the gadget, wait for the icons to appear, and click on the one between the "x" (close gadget) and options icon.
Thanks, I had found that, the wrench icon, but can't figure out what to do within it to make it work. My interest is trading but If I check "trading" all I get for USD is N/A. I have to check "mining" to get a value to appear in USD. This puzzles me. Also, the default setup within the wrench only gives me the rows labeled BTC and USD. I'd like also to see sell, last and buy but can't tell how to effect that. Any help appreciated, thanks. No, not the wrench icon. You need to click the larger size icon (arrow in a frame icon) which is above wrench icon. Or I'm completely misunderstanding you. ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2F2AZCpBz.png&t=665&c=qsic3O7dFMaOwg) Re trading, this is actually an outdated preset, thanks for noticing. I'll fix it in the next version. In the meantime, after you choose "trading" and click apply button, go to Primary exchange section and change Exchange rate JSON key form 'json["return"].last.value' to 'json.data.last.value'.
|
|
|
|
DonGateley
Newbie
Offline
Activity: 7
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 23, 2013, 09:12:22 PM |
|
No, not the wrench icon. You need to click the larger size icon (arrow in a frame icon) which is above wrench icon. Or I'm completely misunderstanding you. https://i.imgur.com/2AZCpBz.pngRe trading, this is actually an outdated preset, thanks for noticing. I'll fix it in the next version. In the meantime, after you choose "trading" and click apply button, go to Primary exchange section and change Exchange rate JSON key form 'json["return"].last.value' to 'json.data.last.value'. Got it. The size icon made it right. The trading fix worked perfectly. Many Thanks
|
|
|
|
40-Pin
Newbie
Offline
Activity: 13
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 15, 2013, 10:47:07 PM |
|
Trying to figure out which settings to use for coinbase from their API page https://coinbase.com/api/doc not sure I am on the right track.
|
|
|
|
|
hieroglyph
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 70
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 16, 2013, 02:21:49 PM |
|
I won't be downloading this but I do appreciate the work you put into this tool. Looks like something I'd think about using in the future.
|
|
|
|
40-Pin
Newbie
Offline
Activity: 13
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 16, 2013, 05:22:23 PM |
|
Thanks so much, works perfect. Your gadget is the best one out there! On a side note I made some changes to its look to make it match the darker theme of my other gadgets. Bright gold can be distracting, thought I would show you a screenshot. You should think of adding some skins somewhere down the line https://i.imgur.com/9zpYE4x.jpg
|
|
|
|
mulderfox
Newbie
Offline
Activity: 35
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 19, 2013, 05:55:50 AM |
|
I tried setting bitstamp as primary exchange with the https://www.bitstamp.net/api/ticker/ address and "last" (without ") but I still get N/A in the price field.. Why is that? thanks!
|
|
|
|
Domchi (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 21, 2013, 01:09:29 AM |
|
I tried setting bitstamp as primary exchange with the https://www.bitstamp.net/api/ticker/ address and "last" (without ") but I still get N/A in the price field.. Why is that? thanks! Hm, it seems that Bitstamp is not allowing extra parameter that MyBitcoins is sending to avoid ticker results being cached. I'll see what I can do in the next version, I'm not using Bitstamp so I wasn't aware that this doesn't work with their API.
|
|
|
|
Tigggger
Legendary
Offline
Activity: 1098
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2013, 02:07:15 PM |
|
With the rising value of BTC could the next release be slightly bigger, ie take it up from 8 to 10 digits, that would allow USD amounts up to 999,999.99 (including a , for nicer formatting) and more decimals on the btc field.
|
|
|
|
Domchi (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 27, 2013, 01:15:43 AM |
|
With the rising value of BTC could the next release be slightly bigger, ie take it up from 8 to 10 digits, that would allow USD amounts up to 999,999.99 (including a , for nicer formatting) and more decimals on the btc field.
Well, if you have more than thousand USD, gadget rounds it to one decimal place, and if you have more than million USD, it assumes that you're not interested in small change and allows you to display up to hundred million. I know there are many new Bitcoin millionaires, but hopefully this is enough even for them. ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) BTC field displays up to 8 digits, rounding decimal places for larger amounts to fit in allocated space. So, you can display up to 99999999 BTC which is pretty hefty sum by today's exchange rate, or up to 7 decimal places for small amounts of bitcoins. Width is actually recommended width for Windows gadgets so that they can be stacked vertically, so the current design is kind of compromise between displaying the most information, in sufficiently large font, at a standard width, and I'm reluctant to change it unless more users find it constraining.
|
|
|
|
Tigggger
Legendary
Offline
Activity: 1098
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 27, 2013, 01:36:51 AM |
|
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](https://bitcointalk.org/Smileys/default/smiley.gif) 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
|
|
|
|
Roccker
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 23, 2013, 12:44:14 PM |
|
Hi! Thanks for this thing! But right now it doesn't work for me.. I want to have bitstamp price every 10sec. My settings: trading https://www.bitstamp.net/api/ticker/sell (also tried json.ticker.sell) it says 'BTC: N/A' and 'USD: N/A' Regards!
|
|
|
|
|