I receive 400 error with no details on this request:
const { data: firstOrderData } = await client.newOrder(pair1.symbol, ‘BUY’, ‘MARKET’, { quoteOrderQty: 5 });
I double checked parameters and they seems ok to me.
Error:
status: 400,
statusText: 'Bad Request',
headers: {
'content-type': 'application/json;charset=UTF-8',
'content-length': '51',
connection: 'close',
date: 'Thu, 22 Sep 2022 10:25:18 GMT',
server: 'nginx',
'x-mbx-uuid': '01b85b05-f191-40ed-a333-403aa641ac11',
'x-mbx-used-weight': '11',
'x-mbx-used-weight-1m': '11',
'strict-transport-security': 'max-age=31536000; includeSubdomains',
'x-frame-options': 'SAMEORIGIN',
'x-xss-protection': '1; mode=block',
'x-content-type-options': 'nosniff',
'content-security-policy': "default-src 'self'",
'x-content-security-policy': "default-src 'self'",
'x-webkit-csp': "default-src 'self'",
'cache-control': 'no-cache, no-store, must-revalidate',
pragma: 'no-cache',
expires: '0',
'x-cache': 'Error from cloudfront',
via: '1.1 eeb2f3ca588ea4437f4b97ed276a6664.cloudfront.net (CloudFront)',
'x-amz-cf-pop': 'FRA56-P4',
'x-amz-cf-id': 'y7jJawXwTPCwaYCVqHyDOheve9ogmpVuy3pC0CXQ1VZRhqdntXgm0g=='
},
config: {
url: '/api/v3/order?quoteOrderQty=5&symbol=ETHUSDT&side=BUY&type=MARKET×tamp=1663842318026&signature=0e4',
method: 'post',
headers: [Object],
baseURL: 'https://api.binance.com',
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
transitional: [Object],
data: undefined
},