Files
bitfinex-api-py/bfxapi/examples/rest/get_seed_trades.py
2022-08-27 17:17:13 +02:00

21 lines
435 B
Python

import os
import sys
import asyncio
sys.path.append('../../../')
from bfxapi import Client
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
# Retrieving seed trades requires public hosts
bfx = Client(
logLevel='INFO',
ws_host=PUB_WS_HOST,
rest_host=PUB_REST_HOST
)
async def get_seeds():
candles = await bfx.rest.get_seed_candles('tBTCUSD')
print (candles)
asyncio.get_event_loop().run_until_complete(get_seeds())