Skip to content

Commit 0d915ff

Browse files
committed
Update README (#43)
1 parent 2e02bf8 commit 0d915ff

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ containing only the abbreviations (like `BTC`).
5555
```python
5656
cryptocompare.get_price('BTC')
5757
# or
58-
cryptocompare.get_price('BTC',curr='USD',full=True)
58+
cryptocompare.get_price('BTC', currency='USD', full=True)
5959
# or
60-
cryptocompare.get_price(['BTC','ETH'],['EUR','GBP'])
60+
cryptocompare.get_price(['BTC', 'ETH'], ['EUR', 'GBP'])
6161

6262
# {'BTC': {'EUR': 3709.04, 'GBP': 3354.78},
6363
# 'ETH': {'EUR': 258.1, 'GBP': 241.25}}
@@ -77,8 +77,8 @@ cryptocompare.get_historical_price('XMR', 'EUR', datetime.datetime(2017,6,6))
7777
#### Day
7878

7979
```python
80-
cryptocompare.get_historical_price_day('BTC', curr='EUR')
81-
cryptocompare.get_historical_price_day('BTC', curr='EUR', limit=30)
80+
cryptocompare.get_historical_price_day('BTC', currency='EUR')
81+
cryptocompare.get_historical_price_day('BTC', currency='EUR', limit=30)
8282
cryptocompare.get_historical_price_day('BTC', 'EUR', limit=24, exchange='CCCAGG', toTs=datetime.datetime(2019,6,6))
8383
# or
8484
cryptocompare.get_historical_price_day('BTC', 'EUR', limit=24, exchange='CCCAGG', toTs=datetime.datetime(1559815200))
@@ -87,8 +87,8 @@ cryptocompare.get_historical_price_day('BTC', 'EUR', limit=24, exchange='CCCAGG'
8787
#### Hour
8888

8989
```python
90-
cryptocompare.get_historical_price_hour('BTC', curr='EUR')
91-
cryptocompare.get_historical_price_hour('BTC', curr='EUR', limit=24)
90+
cryptocompare.get_historical_price_hour('BTC', currency='EUR')
91+
cryptocompare.get_historical_price_hour('BTC', currency='EUR', limit=24)
9292
cryptocompare.get_historical_price_hour('BTC', 'EUR', limit=24, exchange='CCCAGG')
9393
cryptocompare.get_historical_price_hour('BTC', 'EUR', limit=24, exchange='CCCAGG', toTs=datetime.datetime(2019,6,6,12))
9494
# or
@@ -98,15 +98,15 @@ cryptocompare.get_historical_price_hour('BTC', 'EUR', limit=24, exchange='CCCAGG
9898
#### Minute
9999

100100
```python
101-
cryptocompare.get_historical_price_minute('BTC', curr='EUR')
102-
cryptocompare.get_historical_price_minute('BTC', curr='EUR', limit=1440)
101+
cryptocompare.get_historical_price_minute('BTC', currency='EUR')
102+
cryptocompare.get_historical_price_minute('BTC', currency='EUR', limit=1440)
103103
cryptocompare.get_historical_price_minute('BTC', 'EUR', limit=24, exchange='CCCAGG', toTs=datetime.datetime.now())
104104
```
105105

106106
### Average
107107

108108
```python
109-
cryptocompare.get_avg('BTC', curr='EUR', exchange='Kraken')
109+
cryptocompare.get_avg('BTC', currency='EUR', exchange='Kraken')
110110
# {
111111
# 'MARKET': 'CUSTOMAGG',
112112
# 'FROMSYMBOL': 'BTC',

0 commit comments

Comments
 (0)