mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-20 15:24:21 +01:00
Adds BfxApi with seed_candles function
This commit is contained in:
16
bfxapi/examples/get_seed_trades.py
Normal file
16
bfxapi/examples/get_seed_trades.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
import sys
|
||||
import asyncio
|
||||
sys.path.append('../')
|
||||
|
||||
from bfxapi import Client
|
||||
|
||||
bfx = Client(
|
||||
logLevel='INFO'
|
||||
)
|
||||
|
||||
async def get_seeds():
|
||||
candles = await bfx.rest.get_seed_candles('tBTCUSD')
|
||||
print (candles)
|
||||
|
||||
asyncio.get_event_loop().run_until_complete(get_seeds())
|
||||
Reference in New Issue
Block a user