rest: add derivative status and set collateral endpoints

This commit is contained in:
Jacob Plaster
2019-07-19 10:31:27 +07:00
parent 839eb873b0
commit fe21ef24b0
3 changed files with 54 additions and 7 deletions

View File

@@ -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)