How to display USD and Bitcoin price on Classified ads?

0

Hello i'm developing this website https://buysellcarwithbitcoin.com/ how can i display the USD price of classified ads also converted in Bitcoin ? thanks!

Filippo Martin

Posted 2017-12-09T22:52:35.633

Reputation: 1

Question was closed 2017-12-11T09:43:36.830

Answers

1

If you want that cars could be paid by Bitcoin you need some payment gateway.

Otherwise, if you want just to display prices in Bitcoin you can use some blockchain.info API to get the price for it. For example, this URL will return you how much is 5000 BTC: https://blockchain.info/tobtc?currency=USD&value=5000

djm.im

Posted 2017-12-09T22:52:35.633

Reputation: 111

yes i want only to display it, so how can do it? thanks so muchFilippo Martin 2017-12-10T00:06:15.510

Use some api for example, this is how much btc is $5000 https://blockchain.info/tobtc?currency=USD&value=5000

djm.im 2017-12-10T00:35:07.970

i not understand :-( i'm using Wordpress, but not know what i need to add and whereFilippo Martin 2017-12-10T00:40:06.443

for example this is API from Coindesk, but where i need to paste it? https://www.coindesk.com/api/

Filippo Martin 2017-12-10T00:41:37.557

That is more PHP code / Wordpress code related question. You need to put a code snippet that will make an api call with the appropriate price.djm.im 2017-12-10T00:49:37.870

0

Some bitcoin exchanges will offer an API to return the current BTC price, so you can pull data from them, divide the item price into btc price, and display the resulting btc price to your customers.

A quick search brings up a Coinbase API for btc price that would probably work for you.

chytrik

Posted 2017-12-09T22:52:35.633

Reputation: 10 276

i know i must use API but not know what and where paste codesFilippo Martin 2017-12-10T00:08:05.833

Your question relates more to 'how to work with an API call' than it does 'how the bitcoin network works'. You may find better answers in another forum.chytrik 2017-12-10T03:17:27.153