Pages:
Author

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

legendary
Activity: 924
Merit: 1000
Trying to get GBP without yahoo exchange rate.

Correction + pool
https://localbitcoins.com/bitcoinaverage/ticker-all-currencies/
json.GBP.rates.last
GBP.rates.last
rates.last
last

None of the four works.

Ticker GBP and target GBP doesn't work.

It persistently shows USD then GBP at the bottom as N/A.
sr. member
Activity: 529
Merit: 271
How the fuck do I track Bitcoin value in AUD? :/

The first thing to get price in fiat is to make sure you have non-zero value (i.e. 1) in "Correction in currency". Then, your ticker currency must be BTC or USD. And finally, the most important thing is to set Target currency to AUD.

I'm so confused... I tried to read how to on the instruction page already and I'm very confused with the JSON thing... What JSON source do I get?? I don't even know how it works well enough to do this (coding can be pretty overwhelming for me).. Sorry if the instructions are obvious on the MyCoins gadget website, but I keep getting lost when reading them.. I don't understand this.

Have you tried downloading MyBitcoins/MyLitecoins gadgets as well and looking at its settings? That might be a good quickstart as sometimes you just have to change API call to a different coin. MyBitcoins comes with working exchange rate by default, while you have to setup MyCoins to show something.

Also, I'd be very grateful if you could suggest how to improve documentation and what you had problems understanding. I'm keen to improve it.

How'd you make that happen? I'm following the EXACT same format using another API which exists.. But its still not working... How do you guys learn how to do this? I'd like to know if there's an easier way to learn how to do this.. But there doesn't seem to be :/

Well, the exact syntax depends on the API. The greatest strength of this gadget is that it can hook up to almost any API, but that also means you have to somehow instruct it to do so.

Can you share which API and coin you're trying to get, so that I can help with the specifics?
newbie
Activity: 2
Merit: 0
Hi japerry,

it's simple, go to gadget settings (wrench icon) and set change the following options:

Bitfinex
exchange URL: https://api.bitfinex.com/v1/pubticker/BTCUSD
exhange rate JSON key: last_price
field 1 JSON key: ask
field 2 JSON key: last_price
field 3 JSON key: bid

How'd you make that happen? I'm following the EXACT same format using another API which exists.. But its still not working... How do you guys learn how to do this? I'd like to know if there's an easier way to learn how to do this.. But there doesn't seem to be :/
newbie
Activity: 2
Merit: 0
How the fuck do I track Bitcoin value in AUD? :/ I'm so confused... I tried to read how to on the instruction page already and I'm very confused with the JSON thing... What JSON source do I get?? I don't even know how it works well enough to do this (coding can be pretty overwhelming for me).. Sorry if the instructions are obvious on the MyCoins gadget website, but I keep getting lost when reading them.. I don't understand this.
sr. member
Activity: 529
Merit: 271
I'm start using your gadget this couple days to check Bitgrail market. But recently it didn't show any info from https://bitgrail.com/api/v1/BTC-XRB/ticker, just zero. Is there anything wrong?

Update:
It seems the problem wasn't in your gadget. It's because of Bitgrail recent DDOS protection. Grin

Yes, DDoS protection can be a bit annoying and hard to troubleshoot when gadget gets DDoS warning while normal browser doesn't. Sad
newbie
Activity: 2
Merit: 0
Hi Domchi,

I'm start using your gadget this couple days to check Bitgrail market. But recently it didn't show any info from https://bitgrail.com/api/v1/BTC-XRB/ticker, just zero. Is there anything wrong?

Update:
It seems the problem wasn't in your gadget. It's because of Bitgrail recent DDOS protection. Grin
Wed
legendary
Activity: 1231
Merit: 1018
Great,
if I clean all secondary fields also primary exchange is working.
Thank you for your short and great help!
sr. member
Activity: 529
Merit: 271
I tried it for the primary exchange.
With secondary exchange it works like a charm.
Thank you for your help.

Is it possible to hide top and bottom line? In other words primary exchange?

It should also work for the primary exchange, but make sure that JSON fields for the secondary exchange are empty (or have something that parses in them).

It's not possible to hide top field, but it's possible to choose what is displayed in top field and/or hide the bottom field. Play with the first two (or three) options in settings under General section.
Wed
legendary
Activity: 1231
Merit: 1018
I tried it for the primary exchange.
With secondary exchange it works like a charm.
Thank you for your help.

Is it possible to hide top and bottom line? In other words primary exchange?
sr. member
Activity: 529
Merit: 271
Hey,
is this still in development or maintenance?
I'm trying to get my own json API to work but I isn't working.

"rate_weighted" from https://api.wedtec.net/cryptocoins/index.php?bitcoin

Any idea why it isn't working?

Yes it is.

If you're using https://api.wedtec.net/cryptocoins/index.php?bitcoin as secondary exchange, and rate_weighted as Field 1 JSON key, make sure that you clear Field 2 JSON key and Field 3 JSON key. Or, to put it another way, all JSON keys must exist in response (exchange rate JSON key on primary exchange as well).

If this doesn't help, please share your settings and I'll take a look.
Wed
legendary
Activity: 1231
Merit: 1018
Hey,
is this still in development or maintenance?
I'm trying to get my own json API to work but I isn't working.

"rate_weighted" from https://api.wedtec.net/cryptocoins/index.php?bitcoin

Any idea why it isn't working?
sr. member
Activity: 306
Merit: 250
is this just connecting to the sites like a normal web browser- port 80 http connection?
(wondering from a security perspective as I might try to connect at work behind a strict firewall that may not allow all traffic out.)

Also I think having it update once every one to five minutes is probably fine.
Unless you are doing real-time trading the price of BTC moving over five minutes is probably not that much to cause any issues.

The gadget is using Internet Explorer in the background, with all your current IE proxy and other settings, so it should work for any URL that is not blocked by your company firewall. Depending on exchange, this is usually either http (port 80) or https (port 443) GET connection, which are usually enabled by default unless specifically blocked by your network administrator. If you can access URL in browser, gadget will also be able to access it.

And you're correct, by default gadget updates every 10 minutes (mining defaults) which is enough for non-traders, and if you choose trading setup it will update once every minute, which can be changed to less. Exchanges usually have minimum period between requests that you should respect while setting up update frequency.

Thanks again! I LOVE this widget!
sr. member
Activity: 529
Merit: 271
is this just connecting to the sites like a normal web browser- port 80 http connection?
(wondering from a security perspective as I might try to connect at work behind a strict firewall that may not allow all traffic out.)

Also I think having it update once every one to five minutes is probably fine.
Unless you are doing real-time trading the price of BTC moving over five minutes is probably not that much to cause any issues.

The gadget is using Internet Explorer in the background, with all your current IE proxy and other settings, so it should work for any URL that is not blocked by your company firewall. Depending on exchange, this is usually either http (port 80) or https (port 443) GET connection, which are usually enabled by default unless specifically blocked by your network administrator. If you can access URL in browser, gadget will also be able to access it.

And you're correct, by default gadget updates every 10 minutes (mining defaults) which is enough for non-traders, and if you choose trading setup it will update once every minute, which can be changed to less. Exchanges usually have minimum period between requests that you should respect while setting up update frequency.
sr. member
Activity: 529
Merit: 271
Does anyone have an example of how to get the gadget to work with BTC-USD on bitcoinaverage.com? I don't understand their API  Cry

This should do it, using their BETA API. (For v1 API that is to be depreciated, the link is https://api.bitcoinaverage.com/ticker/USD/ and other values the same, but they recommend using BETA.)

BitcoinAverage
exchange URL: https://apiv2.bitcoinaverage.com/indices/global/ticker/BTCUSD
exhange rate JSON key: last
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid
sr. member
Activity: 434
Merit: 250
Very cool project!
I'll have a look at it later today, but have a quick question-

is this just connecting to the sites like a normal web browser- port 80 http connection?
(wondering from a security perspective as I might try to connect at work behind a strict firewall that may not allow all traffic out.)

Also I think having it update once every one to five minutes is probably fine.
Unless you are doing real-time trading the price of BTC moving over five minutes is probably not that much to cause any issues.
sr. member
Activity: 306
Merit: 250
Does anyone have an example of how to get the gadget to work with BTC-USD on bitcoinaverage.com? I don't understand their API  Cry
sr. member
Activity: 306
Merit: 250
To anyone having problems with MyBitcoins gadget and Bitfinex prices - after a few weeks of back and forth with them, I'm happy to say that Bitfinex has removed the rule blocking IE and thus the gadget from fetching prices. Please let me know either here or in PM if anyone is still experiencing issues with Bitfinex.

Excellent Domchi! Thanks for the update!

sr. member
Activity: 529
Merit: 271
To anyone having problems with MyBitcoins gadget and Bitfinex prices - after a few weeks of back and forth with them, I'm happy to say that Bitfinex has removed the rule blocking IE and thus the gadget from fetching prices. Please let me know either here or in PM if anyone is still experiencing issues with Bitfinex.
sr. member
Activity: 529
Merit: 271
It makes no sense to have captcha protecting API endpoint, but that's how it goes with those CDNs that are optimized to work with websites instead of APIs... I've contacted Bitfinex support and reported this, I'll update here if it goes anywhere.

I've talked Bitfinex and they basically say that they've had a large-scale DDoS attack for the last week or so, and that captcha will go away once the DDoS ceases.

Unfortunately nothing can be done in the meantime except perhaps switching to Bitstamp or some other ticker.  Sad
sr. member
Activity: 306
Merit: 250
Thanks! Let us know if you find anything? BTW I've decreased the polling rate to 120 seconds and it seems to work much better now.

Well, Bitfinex is using Incapsula (https://www.incapsula.com/) which uses who-knows-what voodoo to detect suspicious connections. In this case it presents captcha and MyBitcoins gadget (obviously) fails the captcha test.

It's not due to number of requests - I've had it happen when gadget is set to poll Bitfinex once in 10 minutes, and their official API limit is 60 times per minute.

It makes no sense to have captcha protecting API endpoint, but that's how it goes with those CDNs that are optimized to work with websites instead of APIs... I've contacted Bitfinex support and reported this, I'll update here if it goes anywhere.

Thanks! I noticed the gadget is not displaying N/A but it's not updating either. It just shows the last price it was able to get whenever that was Sad

Pages:
Jump to: