Pages:
Author

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

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

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

I've noticed this a few days ago and went investigating. It seems that Bitfinex is using some sort of new anti-DDoS system - when the gadget doesn't update it is actually getting message that it's blocked. I haven't been able to find out what triggers it, but it's not just IP block, it's based on type of browser as well. It seems they blocked Internet Explorer (which is used by gadget) specifically. After a while this went away for me as well.

Perhaps choosing larger update interval in gadget would help, but there is no way of telling. I think that it's not about frequency of requests. Some sort of heuristics figured out that IE should be blocked for a while. Maybe they had DDoS attack that used or emulated IE.

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.

sr. member
Activity: 516
Merit: 268
Hmm... Looks like it stopped working about a week ago. All I get is N/A now. Would it be possible for someone to help guide me to see if Bitfinex has changed their API or something? I've unloaded and reloaded/reconfigured the gadget per the instructions in the previous message. Any help would be greatly appreciated!

UPDATE: Nevermind! It's working now!!

I've noticed this a few days ago and went investigating. It seems that Bitfinex is using some sort of new anti-DDoS system - when the gadget doesn't update it is actually getting message that it's blocked. I haven't been able to find out what triggers it, but it's not just IP block, it's based on type of browser as well. It seems they blocked Internet Explorer (which is used by gadget) specifically. After a while this went away for me as well.

Perhaps choosing larger update interval in gadget would help, but there is no way of telling. I think that it's not about frequency of requests. Some sort of heuristics figured out that IE should be blocked for a while. Maybe they had DDoS attack that used or emulated IE.
Pages:
Jump to: