Files
bitfinex-api-py/examples/rest/get_liquidations.py
2023-02-17 18:38:07 +01:00

14 lines
294 B
Python

# python -c "import examples.rest.get_liquidations"
import time
from bfxapi.client import Client, REST_HOST
bfx = Client(
REST_HOST=REST_HOST
)
now = int(round(time.time() * 1000))
liquidations = bfx.rest.public.get_liquidations(start=0, end=now)
print(f"Liquidations: {liquidations}")