gocryptotrader icon indicating copy to clipboard operation
gocryptotrader copied to clipboard

exchanges: Add Futures WebSocket streaming and Spot WebSocket API

Open samuael opened this issue 1 year ago • 0 comments

Selam team

This pull request introduces the WebSocket streaming functionalities for futures and API endpoint call methods through the Websocket stream for spot endpoints. The future web socket streaming adds support for USDTMarginedFutures and CoinMarginedFutures assets. It establishes connections and handles incoming stream data separately. Furthermore, the pull request extends support for SPOT WebSocket API and API endpoint calls via a distinct WebSocket stream. Ultimately, these WebSocket endpoint calls are seamlessly integrated with the wrapper functions.

Fixes # (issue)

Type of change

Please delete options that are not relevant and add an x in [] as the item is complete.

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

How has this been tested

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration and also consider improving test coverage whilst working on a certain feature or package.

  • [x] go test ./... -race
  • [x] golangci-lint run
  • [x] Test X

Checklist

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation and regenerated documentation via the documentation tool
  • [x] My changes generate no new warnings
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally and on Github Actions with my changes
  • [x] Any dependent changes have been merged and published in downstream modules

samuael avatar Jan 14 '24 19:01 samuael