Files
bitfinex-api-py/examples/rest/get_liquidations.py
2023-01-25 18:33:27 +01:00

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}")