<p>It's possible to get your price equation via their API:</p>
<p><a href="https://localbitcoins.com/api-docs/#ads" rel="nofollow noreferrer">https://localbitcoins.com/api-docs/#ads</a></p>
<p>As well as the price at which each of the trades are locked in at:</p>
<p><a href="https://localbitcoins.com/api-docs/#dashboard" rel="nofollow noreferrer">https://localbitcoins.com/api-docs/#dashboard</a></p>
<p>It should be possible to write a script to scrape this data and calculate the <code>btc_in_usd</code> value using this.</p>
<p>(I'm sure this information is available somewhere in their user panel too, although you might have to look around)</p>

CC BY-SA 4.0
2021-01-27T12:51:12.003Z
2021-01-27T12:51:12.003Z
ieatpizza
<p>In 2016 Localbitcoins (LBC) <a href="https://localbitcoins.com/blog/introducing-new-default-pricing-equation/" rel="nofollow noreferrer">introduced</a> a new stable variable for price equations called <strong>btc_in_usd</strong>. It was/is based on the rates of the seven most famous exchanges, and LBC calculates a median price from all these sources for <strong>btc_in_usd</strong>.</p>
<p>Is it possible to fetch history <strong>btc_in_usd</strong> for my trade, i.e. the rate which was active on LBC at the moment buyer bidded my advertisement? Or just at any point of time.</p>
<p>Thinking from the other side, can I get the price equation for any trade I made, to calculate history rate myself using traded amount?</p>
<p>If it is not possible, maybe I can get history rates from all these exchanges for and calculate this median myself? Are there sources for that?</p>
<p>Thanks in advance.</p>

<trading><exchange-rate><price-discovery><localbitcoins>
Localbitcoins history btc_in_usd rate?
Passerby
# Localbitcoins history btc_in_usd rate?

(Asked by: username_0 on 2021-01-26)

In 2016 Localbitcoins (LBC) [introduced](https://localbitcoins.com/blog/introducing-new-default-pricing-equation/) a new stable variable for price equations called **btc\_in\_usd**. It was/is based on the rates of the seven most famous exchanges, and LBC calculates a median price from all these sources for **btc\_in\_usd**.

Is it possible to fetch history **btc\_in\_usd** for my trade, i.e. the rate which was active on LBC at the moment buyer bidded my advertisement? Or just at any point of time.

Thinking from the other side, can I get the price equation for any trade I made, to calculate history rate myself using traded amount?

If it is not possible, maybe I can get history rates from all these exchanges for and calculate this median myself? Are there sources for that?

Thanks in advance.

**Tags:** trading, exchange-rate, price-discovery, localbitcoins


---

## 1 answers

### Answer by username_1 on 2021-01-27. Score: 1

It's possible to get your price equation via their API:

<https://localbitcoins.com/api-docs/#ads>

As well as the price at which each of the trades are locked in at:

<https://localbitcoins.com/api-docs/#dashboard>

It should be possible to write a script to scrape this data and calculate the `btc_in_usd` value using this.

(I'm sure this information is available somewhere in their user panel too, although you might have to look around)


---

