mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-20 07:14:20 +01:00
rest: add derivative status and set collateral endpoints
This commit is contained in:
@@ -12,8 +12,7 @@ API_SECRET=os.getenv("BFX_SECRET")
|
||||
bfx = Client(
|
||||
API_KEY=API_KEY,
|
||||
API_SECRET=API_SECRET,
|
||||
logLevel='DEBUG',
|
||||
rest_host='https://test.bitfinex.com/v2'
|
||||
logLevel='DEBUG'
|
||||
)
|
||||
|
||||
now = int(round(time.time() * 1000))
|
||||
|
||||
@@ -38,12 +38,18 @@ async def log_mul_tickers():
|
||||
print ("Tickers:")
|
||||
print (tickers)
|
||||
|
||||
async def log_derivative_status():
|
||||
status = await bfx.rest.get_derivative_status('tBTCF0:USTF0')
|
||||
print ("Deriv status:")
|
||||
print (status)
|
||||
|
||||
async def run():
|
||||
await log_historical_candles()
|
||||
await log_historical_trades()
|
||||
await log_books()
|
||||
await log_ticker()
|
||||
await log_mul_tickers()
|
||||
await log_derivative_status()
|
||||
|
||||
t = asyncio.ensure_future(run())
|
||||
asyncio.get_event_loop().run_until_complete(t)
|
||||
|
||||
Reference in New Issue
Block a user