mirror of
https://github.com/wassname/libcryptomarket.git
synced 2026-09-06 16:51:05 +08:00
Documented usage on get_historical_prices
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user