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

Bybit/Deribit/Bitmex currently not working #1012

Open
gigitalz opened this issue Feb 6, 2024 · 0 comments
Open

Bybit/Deribit/Bitmex currently not working #1012

gigitalz opened this issue Feb 6, 2024 · 0 comments
Labels

Comments

@gigitalz
Copy link

gigitalz commented Feb 6, 2024

Describe the bug
It fails to connect

To Reproduce
Comment in/out exchanges to add Bybit/Bitmex/Deribit

def writer(addr, port):
    f = FeedHandler()
    configured = []
    # exchanges = {'BINANCE_FUTURES', 'BYBIT', 'BITMEX', 'DERIBIT}
    exchanges = {'BINANCE_FUTURES'}

    print("Querying exchange metadata...")
    for exchange_string, exchange_class in EXCHANGE_MAP.items():
        if exchange_string in exchanges:
            print(exchange_class.info()['channels']['websocket'])
            if LIQUIDATIONS in exchange_class.info()['channels']['websocket']:
                configured.append(exchange_string)
                print(exchange_string)
                symbols = [sym for sym in exchange_class.symbols() if 'PINDEX' not in sym]
                f.add_feed(exchange_class(subscription={LIQUIDATIONS: symbols}, callbacks={LIQUIDATIONS: LiquidationsSocket(addr, port=port)}), timeout=600)
                       
    print("Starting feedhandler for exchanges:", ', '.join(configured))
    f.run()


if __name__ == '__main__':
    freeze_support()
    p = Process(target=writer, args=('udp://127.0.0.1', 12321))
    p.start()

Operating System:

  • Windows 10

Cryptofeed Version

  • 2.4.0
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

1 participant