mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
-) Use private host for auth-based requests
-) Updated examples
This commit is contained in:
@@ -2,7 +2,7 @@ import os
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, Order
|
||||
from bfxapi import Client, WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
@@ -11,6 +11,8 @@ bfx = Client(
|
||||
API_KEY=API_KEY,
|
||||
API_SECRET=API_SECRET,
|
||||
logLevel='DEBUG',
|
||||
ws_host=WS_HOST,
|
||||
rest_host=REST_HOST,
|
||||
dead_man_switch=True, # <-- kill all orders if this connection drops
|
||||
channel_filter=['wallet'] # <-- only receive wallet updates
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user