ERROR 400

HI TO ALL, WHY THIS CODE NOT WORK? (error 400 Bad Request)

    Dim TimeStamp As String = CLng((Date.UtcNow - #1970/01/01#).TotalMilliseconds).ToString
    Dim TotalParam As String
    TotalParam = "timestamp=" + TimeStamp
    Dim HashKey As String
    HashKey = HashString(TotalParam, "MY SECRET")

    Dim APIUrl As String
    APIUrl = "https://api.binance.com/api/v3/order?symbol=trxbusd&side=buy&type=limit&timeInForce=GTC&quantity=100000&price=0.05&" + TotalParam + "&signature=" + HashKey

    Dim Request As System.Net.HttpWebRequest
    Request = DirectCast(System.Net.HttpWebRequest.Create(APIUrl), System.Net.HttpWebRequest)
    Request.Headers.Add("X-MBX-APIKEY", "MY KEY")
    Request.Method = "POST" 'GET / POST / DELETE
    Dim Response As System.Net.HttpWebResponse = DirectCast(Request.GetResponse(), System.Net.HttpWebResponse) '
    Dim Read = New System.IO.StreamReader(response.GetResponseStream).ReadToEnd

What was the error message returned?

Hello, the message is “The remote server returned an error: (400) Bad Request”

that doesn’t sound like a message from the server. You may wish to look into the library or dependencies you are using.