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:
@@ -8,11 +8,9 @@ bfx ws instances to comply with the open subscriptions number constraint (max. 2
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
import asyncio
|
||||
import json
|
||||
from datetime import datetime
|
||||
from functools import partial
|
||||
import websockets as ws
|
||||
from bfxapi import Client
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
import math
|
||||
import random
|
||||
|
||||
@@ -27,7 +25,7 @@ def get_random_list_of_tickers():
|
||||
class Instance:
|
||||
def __init__(self, _id):
|
||||
self.id = _id
|
||||
self.bfx = Client(logLevel='INFO')
|
||||
self.bfx = Client(logLevel='INFO', ws_host=PUB_WS_HOST, rest_host=PUB_REST_HOST)
|
||||
self.subscriptions = {'trades': {}, 'ticker': {}}
|
||||
self.is_ready = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user