Beispiel #1
0
        public void Subscribe(AuthSubscriptionTopic topic)
        {
            var operation = "{\"op\":\"authKeyExpires\",\"args\":[\"" + topic.ApiKey + "\"," + topic.Expires + ",\"" + topic.Signature + "\"]}";

            _logger.Info(operation);

            _webSocket.Send(operation);
        }
Beispiel #2
0
        private void SetAuthentication()
        {
            var topic = new AuthSubscriptionTopic(BitMexConfig.PublicBitmexKey, BitMexConfig.PrivateBitmexKey);

            _socket.Subscribe(topic);
        }