Post
Topic
Board Project Development
Re: Bitcoin Windows gadget which displays BTC and currency amounts
by
w.a.y.n.e
on 09/04/2024, 07:26:16 UTC
Morning,

I think i've tried every combination of that, including dropping the ticker URL into source one and selecting pools + correction.

Same thing every time, as soon as the top field is not hidden, the exchange rate calculation goes wrong, hide it, and it works properly.

here's a run down of all of my settings, after your suggestion above:

Quote
PRESETS:
Trading selected

GENERAL:
Custom Top Field: Secondary exchange rate (field 3)
Hide bottom field:  unticked
Main currency/top field label: USD
Correction in currency (will be added to the total amount, can be negative) 1
Note (write anything you want here, for your use, shows on mouseover):                               Value of 1 Bitcoin

ALERT:
not changed anything in this section, all settings default and values 0

UPDATES:
Source data update interval (in minutes): 10
Exchange data update interval (in seconds):  600

PRIMARY EXCHANGE:
Exchange URL: https://api.binance.com/api/v3/ticker?symbol=BTCUSDT
Exchange rate JSON Key: lastPrice
Ticker Currency (not main currency):  USD

Target curerency:  GBP
Target currency API Key:  my API key

SECONDARY EXCHANGE:
Exchange URL: https://api.binance.com/api/v3/ticker?symbol=BTCUSDT

Field 1 Label: Low
JSON KEy: lowPrice

Field 2 Label: High
JSON KEy: highPrice

Field 3 Label: USD
JSON Key: lastPrice

Everything below that point relating to SOURCES is blank



that setup results in the strange calculation in the bottom field, just as if i only use a primary exchange rate, yet as soon as the top field is hidden, the GBP calculation field works as expected, Field 3 of Secondary Exchange rate remains as expected at the lastPrice, this exact scenario also happens if I move the secondary exchange URL and JSON key to Source #1 section and point the top field there instead, and also the same if i simply remove the second exchange URL completely and just run with the one.

If i point the top field to a blank thing, such as pools + correction when that is empty, "1" is displayed and the GBP calculation appears correct, perhaps with "1" added or not, not sure on that as i never checked