mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 08:48:07 +00:00
commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
- [Basic Rate Limiting](./examples/py/)
|
||||
|
||||
|
||||
```python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from pprint import pprint
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
import ccxt # noqa: E402
|
||||
|
||||
|
||||
symbol = 'ETH/BTC'
|
||||
|
||||
exchange = ccxt.poloniex({
|
||||
'enableRateLimit': True, # enabled by default
|
||||
})
|
||||
|
||||
# print 10 times with appropriate delay
|
||||
for i in range(0, 10):
|
||||
print('--------------------------------------------------------------------')
|
||||
ticker = exchange.fetch_ticker(symbol)
|
||||
ticker = exchange.omit(ticker, 'info')
|
||||
pprint(ticker)
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user