mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
14 lines
304 B
Python
14 lines
304 B
Python
# python -c "import examples.rest.get_liquidations"
|
|
|
|
import time
|
|
|
|
from bfxapi.client import Client, Constants
|
|
|
|
bfx = Client(
|
|
REST_HOST=Constants.REST_HOST
|
|
)
|
|
|
|
now = int(round(time.time() * 1000))
|
|
|
|
liquidations = bfx.rest.public.get_liquidations(start=0, end=now)
|
|
print(f"Liquidations: {liquidations}") |