Cannot create an order with node.js connector

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&timestamp=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

},

You can look into https://github.com/binance/binance-connector-node/blob/master/examples/spot/trade/newOrder.js as an example on how to submit a new order using our node.js connector.
If there’s error, it’ll also be logged for debugging.

Yeah, this worked. But for some reason I cannot open market order

HELLO @aisling2 can we buy usdt from usd
i am using what symbol i give in for buy usdt from currency usd
client.newOrder('symbol ', ‘BUY’, ‘LIMIT’, {
price: data.data.price,
quantity: 1,
timeInForce: ‘GTC’
}).then(response => client.logger.log(response.data))
.catch(error => client.logger.error(error))

Hey, use the exchangeInfo endpoint to know which symbols are available for trading.