Files
bitfinex-api-py/examples/rest/get_liquidations.py
2023-01-15 23:19:09 +01:00

14 lines
311 B
Python

# python -c "from examples.rest.get_liquidations import *"
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}")