From 9ea0fcf496a432166cd5ebc09bb560f81ca8369d Mon Sep 17 00:00:00 2001 From: AuroraTradingTeam Date: Thu, 9 Nov 2017 07:40:14 +0000 Subject: [PATCH] Documented usage on get_historical_prices --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e5e4d33..4eb62b0 100644 --- a/README.md +++ b/README.md @@ -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