Bitcoin Forum
April 30, 2024, 09:31:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [TOOL] Bitcoin data API to use in bitcointalk as images  (Read 600 times)
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2282
Merit: 5913


bitcoindata.science


View Profile WWW
May 27, 2023, 03:08:39 PM
 #21

Suggestion: Add width and height tags to the image, to prevent the page size from changing after the image loads.
That's only possible if the dimensions don't change.

It is a good idea to fix height for some endpoints (not all). Width is impossible.

This is prevent most layout shift. The problem is that this cannot be defined in the api, but in the forum user post only...

Added some fixed height here:
https://bitcoindata.science/bitcointalk-api.html

@bitmover Is it possible to implement truncating in case there are so many decimal zero's?
Thank for pointing out.
I will check this 3 zero decimal point, which is wrong for usd. It must be 2. I will fix this next week.

Reduced to 2 decimal points now.


But the actual price of BTC right now is- 26700*113= 3017000 or 3 million BDT. (Here's 113 is USDT to BDT conversion rate)
There's a difference of 150k BDT which is huge.

On the other hand, in Binance P2P, right now, 1 BTC = 3019000 which is slightly different from the actual price I have shared.

So, Binance P2P is the most accurate price for BDT. No one will sell you 1 BTC for the price your image is showing.

The problem is that in Bangladesh has a very specific situation where 1 BTC is worth more than it is worth in other countries, you have a high spread rate. I can just convert USD to BDT that the price is not accurate to your country.

Where can I follow BDTUSDT price? I couldnt find this price in binance. Do you have any other reliable price for USDT BDT pair?


Quote
It would be a handy tool for us to be honest as there's no source which share the actual price in BDT, I repeat no source.

The source of the information is in the API documentation.

Quote
Using blockchain data from mempool.space and price data from coingecko and exchange.host
https://bitcoindata.science/bitcointalk-api.html

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Little Mouse
Legendary
*
Offline Offline

Activity: 2030
Merit: 1979


Marketing Campaign Manager |Telegram ID- @LT_Mouse


View Profile WWW
May 27, 2023, 03:20:33 PM
Merited by vapourminer (1), bitmover (1)
 #22

Where can I follow BDTUSDT price? I couldnt find this price in binance. Do you have any other reliable price for USDT BDT pair?
Here- https://p2p.binance.com/en/trade/sell/BTC?fiat=BDT&payment=ALL


Well, the problem is with USD rate vs USDT rate.

You are providing data based on USD rate while in our country, USD rate and USDT rate aren't the same. 1 USD based on the bank rate is 107 BDT while 1 USDT is now worth 113+ BDT. That's the difference.

Since we can't use Bank to buy BTC, there's no way of using USD directly. That's why we have to use USDT and the rate varies. I'm not an expert, so I'm not sure if you can get the price from Binance P2P (given link above). That's the actual price. Price in USD*BDT isn't the actual one.

My bad, I think it's too demanding from you since you are doing all these voluntarily. The point is if no one is willing to sell at the price, say X BDT, what's the point of saying 1 BTC is worth X BDT when it actually worths more?

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
joker_josue
Legendary
*
Offline Offline

Activity: 1638
Merit: 4557


**In BTC since 2013**


View Profile WWW
May 27, 2023, 05:17:42 PM
 #23

Since we can't use Bank to buy BTC, there's no way of using USD directly. That's why we have to use USDT and the rate varies. I'm not an expert, so I'm not sure if you can get the price from Binance P2P (given link above). That's the actual price. Price in USD*BDT isn't the actual one.

But, the price in P2P is always higher than the real bitcoin price. I am of the opinion that the reference should never be the price in P2P.

Now, if that peer doesn't officially exist, then yes, you can use P2P. But the reference should always be the official quote and not the P2P quote.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2282
Merit: 5913


bitcoindata.science


View Profile WWW
May 29, 2023, 11:46:09 AM
Merited by vapourminer (1)
 #24

Since we can't use Bank to buy BTC, there's no way of using USD directly. That's why we have to use USDT and the rate varies. I'm not an expert, so I'm not sure if you can get the price from Binance P2P (given link above). That's the actual price. Price in USD*BDT isn't the actual one.

But, the price in P2P is always higher than the real bitcoin price. I am of the opinion that the reference should never be the price in P2P.

Now, if that peer doesn't officially exist, then yes, you can use P2P. But the reference should always be the official quote and not the P2P quote.



We had a similar problem in Brazil about 5-6 years ago. Bitcoin was about 5-10% more expensive here compared to USD price.

The point is that the p2p option is probably the only option, joker_josue.



Little Mouse, I believe I have solved BDT problem:

Tether (USDT) price:
Code:
[url=https://bitcoindata.science/bitcointalk-api.html#local-price][img height=16]https://bitcoindata.science/api/localprice.php?coin=tether&amount=1&currency=BDT[/img][/url]


Bitcoin (BTC) price:
Code:
[url=https://bitcoindata.science/bitcointalk-api.html#local-price][img height=16]https://bitcoindata.science/api/localprice.php?coin=bitcoin&amount=1&currency=BDT[/img][/url]


Using data from binance p2p.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16577


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
August 04, 2023, 06:32:43 PM
Merited by bitmover (3)
 #25

Can you add OP_RETURN data to the image?
For this transaction:

I'd like to see this:
Image loading...

bitmover (OP)
Legendary
*
Offline Offline

Activity: 2282
Merit: 5913


bitcoindata.science


View Profile WWW
August 05, 2023, 02:09:33 PM
Merited by LoyceV (6), vapourminer (1), paid2 (1)
 #26

Can you add OP_RETURN data to the image?
For this transaction:


Done!
Thanks for you suggestion!!

Looks like this message is badly decoded , even in other block explorers. Is this the message you are expecting to see?

Code:
D.@M ."


Another examples:




.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16577


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
August 06, 2023, 11:38:00 AM
 #27

Thanks for you suggestion!!
Thanks! It's a good improvement Smiley

Quote
Looks like this message is badly decoded , even in other block explorers. Is this the message you are expecting to see?

Code:
D.@M ."
That's what I get when I copy it from Blockchair. But when I just look at it, it looks like this:
Code:
D.@M ."
I'd say it's fine. At least it's now clear there's something, and it's up to the viewer to dig deeper.

bitmover (OP)
Legendary
*
Offline Offline

Activity: 2282
Merit: 5913


bitcoindata.science


View Profile WWW
August 17, 2023, 09:47:25 PM
Merited by rdluffy (1), Cricktor (1)
 #28

New feature: colors and font bold.

Example: Requesting the price of 0.1 bitcoin in EUR.
Using bold and purple color, just and parameters &hex=872cc3 and &bold

Code:
[img]https://bitcoindata.science/api/localprice.php?amount=0.1&currency=EUR&hex=872cc3&bold[/img]


And Orange and bold
Code:
https://bitcoindata.science/api/addressbalance.php?address=1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa&hex=ffa500&bold



those new parameters works in all API.

Details in documentation.



https://bitcoindata.science/bitcointalk-api.html#local-price

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2282
Merit: 5913


bitcoindata.science


View Profile WWW
August 22, 2023, 05:48:36 PM
 #29

I have some free time this week, I am open for new ideas and suggestions in this api

What kind of data would you like to see in this api?

Do you guys think a charts could be useful? Maybe I could do some charts, like a price chart, always updated.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
joker_josue
Legendary
*
Offline Offline

Activity: 1638
Merit: 4557


**In BTC since 2013**


View Profile WWW
August 22, 2023, 06:52:11 PM
Merited by LoyceV (4), bitmover (1)
 #30

Was it possible to turn the image into a gif and have the option to go through the last 3 or 4 transactions?

Like that:

date, transaction1 +1 BTC
5 seconds later
date, transaction2 -0.5 BTC
5 seconds later
date, transaction2 -0.0001 BTC


Something somewhat simple, but interesting.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
bitmover (OP)
Legendary
*
Offline Offline

Activity: 2282
Merit: 5913


bitcoindata.science


View Profile WWW
October 05, 2023, 04:05:16 PM
 #31

updated the transaction API to show coinbase transaction data:




Was it possible to turn the image into a gif and have the option to go through the last 3 or 4 transactions?

In my TODO list Smiley

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!