Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
422 B
3
Indexable
Never
const axios = require('axios');
let data = '{\r\n"secret": "key",\r\n"_id": "SnHejSXiAnEa5xTpk"\r\n}';

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'http://localhost:3000/ws-bybit-trailing',
  headers: { 
    'Content-Type': 'text/plain'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});