Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchBookTicker() feature request #16009

Closed
L1nkus opened this issue Dec 7, 2022 · 3 comments
Closed

watchBookTicker() feature request #16009

L1nkus opened this issue Dec 7, 2022 · 3 comments
Assignees
Labels

Comments

@L1nkus
Copy link
Contributor

L1nkus commented Dec 7, 2022

Most exchanges have a 'bookTicker' websocket endpoint, with real-time best bids and asks.

Ccxt has watchTicker(), which uses 'ticker' and not 'bookTicker' endpoints, and this generally updates very slowly, like every 1s, vs bookTicker is real-time.

Is watchBookTicker() on a todo list?

@pcriadoperez pcriadoperez self-assigned this Dec 13, 2022
@pcriadoperez
Copy link
Contributor

Hi @L1nkus , for exchanges that offer bookTicker we implement it inside watchTicker() as an option. So for example in bybit you can set the option `this.options['spot']['watchTickerTopic'] = 'bookticker'

Was there any exchange you were specially interested in?

@L1nkus
Copy link
Contributor Author

L1nkus commented Dec 22, 2022

Thanks for response @pcriadoperez, I didn't know about options.

Yep, I were interested about huobi, and there doesn't seem to be such an option for it. Huobi has bookticker named as bbo (best bid-ask): https://huobiapi.github.io/docs/spot/v1/en/#best-bid-offer

@pcriadoperez
Copy link
Contributor

Hi @L1nkus , I opened a PR to add the option for huobi (#16198)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants