<p>It is fairly common for exchanges to only provide a limited amount of historical data. Tradingview and  other sites that have more historical data store it themselves on a database. With 2 hours of data you could ping the exchange API once every 2 hours adding the new data to your database each time.</p>

CC BY-SA 4.0
2018-06-15T01:18:28.623Z
2018-06-15T01:18:28.623Z
m1xolyd1an
<p>I am trying to use the Bitfinex API to get historic shorts,longs BTC/USD data.So, the Bitfinex gives size data with Available values: '1m', this equals last 2 hours, i need last two month at least. Trading view have all data, but i must pass the license. Have another ways to get this data?</p>

<exchanges><api><historical-trade-data><bitfinex><margin>
Shorts, longs BTC data
Mike Kravchenko
# Shorts, longs BTC data

(Asked by: username_0 on 2018-06-13)

I am trying to use the Bitfinex API to get historic shorts,longs BTC/USD data.So, the Bitfinex gives size data with Available values: '1m', this equals last 2 hours, i need last two month at least. Trading view have all data, but i must pass the license. Have another ways to get this data?

**Tags:** exchanges, api, historical-trade-data, bitfinex, margin


---

## 1 answers

### Answer by username_1 on 2018-06-15. Score: 1

It is fairly common for exchanges to only provide a limited amount of historical data. Tradingview and other sites that have more historical data store it themselves on a database. With 2 hours of data you could ping the exchange API once every 2 hours adding the new data to your database each time.


---

