public void CreateSignature_ShouldReturnCorrectString()
        {
            var nonce     = BitmexAuthentication.CreateAuthNonce(123456);
            var payload   = BitmexAuthentication.CreateAuthPayload(nonce);
            var signature = BitmexAuthentication.CreateSignature(payload, "api_secret");

            Assert.Equal("7657aa8b00b54ee7d58ed0ed42b6cad6d8b1e008bee4617b70d11cd87dbbc1e6", signature);
        }
        public AuthenticationRequest(string apiKey, string apiSecret)
        {
            BmxValidations.ValidateInput(apiKey, nameof(apiKey));
            BmxValidations.ValidateInput(apiSecret, nameof(apiSecret));

            _apiKey = apiKey;

            _authNonce   = BitmexAuthentication.CreateAuthNonce();
            _authPayload = BitmexAuthentication.CreateAuthPayload(_authNonce);

            _authSig = BitmexAuthentication.CreateSignature(apiSecret, _authPayload);
        }