Documented usage on get_historical_prices

This commit is contained in:
AuroraTradingTeam
2017-11-09 07:40:14 +00:00
parent 0eaf619d07
commit 9ea0fcf496
+3 -1
View File
@@ -42,12 +42,14 @@ instruments = get_instruments()
Run
```
from datetime import datetime
from libcryptomarket.historical import get_historical_prices
prices = get_historical_prices(symbol='LTCBTC',
exchange='Poloniex',
period="hour",
limit=4000).set_index(['r_time'])
from_time=datetime(2017, 5, 1),
to_time=datetime(2017, 8, 1))
```
Then you can get historical price in ascending order seamlessly, even though