mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 09:18:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
- [Poloniex Python2 Memleak Test](./examples/py/)
|
||||
|
||||
|
||||
```python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import sys
|
||||
import psutil
|
||||
|
||||
|
||||
import ccxt # noqa: E402
|
||||
exchange = ccxt.poloniex()
|
||||
|
||||
while True:
|
||||
orderbook = exchange.fetch_order_book('ETH/BTC')
|
||||
process = psutil.Process(os.getpid())
|
||||
print(exchange.iso8601(exchange.milliseconds()), process.memory_info()[0])
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user