ccapi
ccapi copied to clipboard
few issues with some exchanges
Few issues I come across:
- running ccapi in batch mode results in memory leak despite .Purge() / does not occur if fanning
- "bitget": no trade id is collected while available (made changes in the .h file recompiled but somehow the change is not reflected - not sure why I can't seem to update the c++ code)
- "bitget-futures": no trade id is collected while available
- "kraken-futures": collects orderbook snapshots fine but collects trades only for some seconds then fails with pong timeout: failed before opening even the socket was just open timestamps are off
- "deribit": collects orderbook snapshots fine but no trades: ERROR_MESSAGE = rapidjson internal assertion failure
- "kucoin-futures": ERROR_MESSAGE = {"id":"0","type":"error","code":400,"data":"topic :BTC-USDT_/contractMarket/execution is invalid"} while symbol used is BTC-USDT without underscore somehow the lib is adding it
Can confirm, get segfaults after running the script for a few hours.
I've checked heaptrack as well and the memory leaks are present