Skip to content

Conversation

itsdeka
Copy link
Contributor

@itsdeka itsdeka commented Aug 22, 2022

Description:

Updated code to change private host for auth-based requests and updated examples

Breaking changes:

  • [ ]

New features:

  • [ ]

Fixes:

  • [X]

PR status:

  • Version bumped
  • Change-log updated

Copy link
Contributor

@vigan-abd vigan-abd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, one question

"""

def __init__(self, API_KEY=None, API_SECRET=None, host='wss://api-pub.bitfinex.com/ws/2',
def __init__(self, host, API_KEY=None, API_SECRET=None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm would this be breaking change? previously host was optional

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello vigan, thanks for checking

BfxWebsocket is called only from https://github.com/bitfinexcom/bitfinex-api-py/blob/master/bfxapi/client.py#L24 and in that function ws_host defaults to WS_HOST. I wanted to avoid that duplicate hardcoded URL, but I think you're right and it's safer if I use WS_HOST also there so if our users have some highly customized implementation we do not break anything

@vigan-abd vigan-abd merged commit 757cb4a into bitfinexcom:master Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants