xchg-rax-rax / crypto_quote_service

A program for obtaining mass market data from from various crypto excahnges for the purpose back-testing and training ML models
0 stars 0 forks source link

Allow the websocket to manage the life time of it's own io and SSL contexts #3

Closed xchg-rax-rax closed 1 year ago

xchg-rax-rax commented 1 year ago

Overview

Rather than having the user of the websocket class be responsible for the creation and management of the weboscket's io and SSL contexts this responsibility should be delegated to the websocket, with the behavior of the instantiating object (for our purposes this will be a QueryService instance) being driven primarily on the basis of events arising from the websocket.

Implementation

This aught to be fairly straight forward: