<p>If x is the number of dogecoins per dollar, then <code>x * 0.00009289 = 1</code>.  So </p>

<p><code>x = 1 / 0.00009289 = 10765.421</code>.  </p>

<p>In other words, simply take the reciprocal.</p>

CC BY-SA 3.0
2015-05-10T14:27:50.877Z
2015-05-10T14:27:50.877Z
Nate Eldredge
<p>My Question is below:</p>

<p>I get <strong>the value of one USD's amount in bitcoin</strong> using the <code>last</code> value from btc-e (In case someone finds this useful..)</p>

<p>The btc-e api call is <a href="https://btc-e.com/api/3/ticker/btc_usd" rel="nofollow">https://btc-e.com/api/3/ticker/btc_usd</a></p>

<pre><code>{"btc_usd":
    {  
    "high":245.196,
    "low":238.75,
    "avg":241.973,
    "vol":1311899.79685,
    "vol_cur":5434.56688,
    "last":242.291,
    "buy":242.9,
    "sell":242.29,
    "updated":1431260454
    }}
</code></pre>

<p>The sum is like this</p>

<pre><code>( 1 / ( 242.291 / 100000000 ) ) / 100000000

= 0.004127268449921788       btc-e exchange price for $1 worth of BTC

//0.00411811                 this is similar to blockchain.info's $1 average price
</code></pre>

<p>To explain, I am mimicking <a href="https://blockchain.info/tobtc?currency=USD&amp;value=1" rel="nofollow">https://blockchain.info/tobtc?currency=USD&amp;value=1</a> as it converts the price of one USD to its value in BTC like so:</p>

<pre><code>0.00411811
</code></pre>

<hr>

<p><strong>My question:</strong></p>

<p>I need to somehow do this with <a href="http://dogecoinaverage.com/USD" rel="nofollow">http://dogecoinaverage.com/USD</a></p>

<p>Which states:</p>

<p>The global volume-weighted average price of one Dogecoin is:</p>

<pre><code>0.00009289 USD
</code></pre>

<p>Could I use that information to mathematically get the average price of 1USD in DOGE?</p>

CC BY-SA 3.0
2015-05-10T19:32:33.250Z
related: [How do I calculate the value of some amount of bitcoins in my native currency?](http://bitcoin.stackexchange.com/q/9445/5406)
Murch
<exchange-rate>
How can I take the exchange rate (1-Crypto-to-USD) and convert it to the other direction? (1-USD-to-Crypto)
Ben Muircroft
# How can I take the exchange rate (1-Crypto-to-USD) and convert it to the other direction? (1-USD-to-Crypto)

(Asked by: username_0 on 2015-05-10)

My Question is below:

I get **the value of one USD's amount in bitcoin** using the `last` value from btc-e (In case someone finds this useful..)

The btc-e api call is <https://btc-e.com/api/3/ticker/btc_usd>

```
{"btc_usd":
    {  
    "high":245.196,
    "low":238.75,
    "avg":241.973,
    "vol":1311899.79685,
    "vol_cur":5434.56688,
    "last":242.291,
    "buy":242.9,
    "sell":242.29,
    "updated":1431260454
    }}

```

The sum is like this

```
( 1 / ( 242.291 / 100000000 ) ) / 100000000

= 0.004127268449921788       btc-e exchange price for $1 worth of BTC

//0.00411811                 this is similar to blockchain.info's $1 average price

```

To explain, I am mimicking <https://blockchain.info/tobtc?currency=USD&value=1> as it converts the price of one USD to its value in BTC like so:

```
0.00411811

```

---

**My question:**

I need to somehow do this with <http://dogecoinaverage.com/USD>

Which states:

The global volume-weighted average price of one Dogecoin is:

```
0.00009289 USD

```

Could I use that information to mathematically get the average price of 1USD in DOGE?

**Tags:** exchange-rate

> **Comments:**
> **username_1**: related: [How do I calculate the value of some amount of bitcoins in my native currency?](http://bitcoin.stackexchange.com/q/9445/5406)  

---

## 1 answers

### Answer by username_2 on 2015-05-10. Score: 3 | Accepted answer

If x is the number of dogecoins per dollar, then `x * 0.00009289 = 1`. So

`x = 1 / 0.00009289 = 10765.421`.

In other words, simply take the reciprocal.


---

