public WebsocketCoinigy(ApiCredentials credentials) { Console.WriteLine("WebsocketCoinigy::ctor() {0} {1}", credentials.ApiKey, credentials.ApiSecret); this.credentials = credentials; this.socket = new PureSocketClusterSocket(WssUrl); socket.OnOpened += Socket_OnOpened; socket.OnMessage += Socket_OnMessage; socket.OnData += Socket_OnData; }
public WebsocketGDAX(ApiCredentials credentials) { Console.WriteLine("WebsocketGDAX::ctor() {0} {1}", credentials.ApiKey, credentials.ApiSecret); this.credentials = credentials; this.socket = new PureSocketClusterSocket(WssUrl); socket.OnOpened += Socket_OnOpened; socket.OnMessage += Socket_OnMessage; socket.OnData += Socket_OnData; socket.OnClosed += Socket_OnClosed; socket.OnError += Socket_OnError; socket.OnFatality += Socket_OnFatality; socket.OnSendFailed += Socket_OnSendFailed; socket.OnStateChanged += Socket_OnStateChanged; }