crypto-chassis / ccapi

A header-only C++ library for interacting with crypto exchanges. Bindings for Python, Java, C#, Go, and Javascript are provided.
https://discord.gg/b5EKcp9s8T
MIT License
555 stars 192 forks source link

few subscriptions methods fail #456

Closed go-dockly closed 6 months ago

go-dockly commented 7 months ago

I am trying to setup subscriptions:

        subscription = ccapi.NewSubscription(
            exchange,
            symbol,
            "TRADE",
            "CONFLATE_GRACE_PERIOD_MILLISECONDS=40",
            "my correlation id",
        )
        subscription = ccapi.NewSubscription(
            exchange,
            symbol,
            "MARKET_DEPTH",
            "MARKET_DEPTH_MAX=5",
            "my correlation id",
        )

I tested through all of them and everything works fine and well and is amazing. Only those 2 issues I encountered:

/contractMarket/level2Depth5:XBTUSDM

Thank you very much for this awesome library.

cryptochassis commented 7 months ago

Let me try to first address "bybit-derivatives". You'd use subscription.setInstrumentType("usdt-contract"). Sorry that I definitely need to put that into the documentation.

cryptochassis commented 7 months ago

"kucoin-futures (XBTUSDM)". The error message seems to indicate that there was a typo in the symbol? Should it be XBTUSDM rather than XBTUSDM_?

cryptochassis commented 7 months ago

“cryptocom(BTCUSD-PERP)”: Is your IP address in cryptocom's restricted countries?