Hi all,
I’m trying to post new order but not successfully
- I had create API keys
- Add API to the code
- Test account staus (/api/v3/account) - Working fine!
- Test new orders (/api/v3/order) - not successfully
ANY HELP?
=================================================================
Dim TimeStamp As String
TimeStamp = CLng((DateTime.UtcNow - #1970/01/01#).TotalMilliseconds).ToString
Dim TotalParam As String
TotalParam = "timestamp=" + TimeStamp
Dim HashKey As String
HashKey = HashString(TotalParam, SecretKey)
Dim APIUrl As String
APIUrl = "https://api.binance.com/api/v3/order?symbol=ADAUSDT&side=BUY&type=LIMIT&timeInForce=50000&quantity=100&price=0.500&" + 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", ApiKey)
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