<p>Firstly, I know  this is a duplicate post but from what I can find all of the others are using the MtGox price (redundant now).</p>

<p>I was wondering - what is the current best way to display the price of one litecoin and one bitcoin in USD using PHP?</p>

CC BY-SA 3.0
2014-03-27T07:17:39.533Z
First example in linked question has a PHP example connecting to BitPay's rate API. Which is possibly better to use than exchanges. The basic gist is using PHP to read JSON from a url. See [how to Get JSON object from URL](http://stackoverflow.com/questions/15617512/get-json-object-from-url)
John T
CC BY-SA 3.0
2014-03-27T07:26:11.727Z
See the question that Jacob Torba suggested, I have added an answer there that might suite you.
Jori
<bitcoind><litecoin><php>
How to display price of one Bitcoin on website in PHP?
Michael A
# How to display price of one Bitcoin on website in PHP?

(Asked by: username_0 on 2014-03-27)

Firstly, I know this is a duplicate post but from what I can find all of the others are using the MtGox price (redundant now).

I was wondering - what is the current best way to display the price of one litecoin and one bitcoin in USD using PHP?

**Tags:** bitcoind, litecoin, php

> **Comments:**
> **username_1**: First example in linked question has a PHP example connecting to BitPay's rate API. Which is possibly better to use than exchanges. The basic gist is using PHP to read JSON from a url. See [how to Get JSON object from URL](http://stackoverflow.com/questions/15617512/get-json-object-from-url)  
> **username_2**: See the question that Jacob Torba suggested, I have added an answer there that might suite you.  

---

## 0 answers

