Error 14 Invalid signature may occur when sending a REST request or connecting a WebSocket.
Check that you send a payload as a string.
Check the signature is correct.
Use the following tests to check the correctness of your signature:
REST Signature test
// Generate your key and secret
key = "your API key"
secret = "your API secret"
method = "add"
content = {
"nonce": 49856723467362345, // Unique within a 2-min window per API key
"timestamp": 1628489110490, // Put current timestamp
"instrument": "BTC-USD",
"clientOrderId": 1,
"size": 1,
"side": "ask",
"type": "MarketIOC"
}