Skip to content

Instantly share code, notes, and snippets.

@maxoja
Last active April 30, 2021 22:56
Show Gist options
  • Save maxoja/ca07957c7cc2398fbd9ed1bfc999db04 to your computer and use it in GitHub Desktop.
Save maxoja/ca07957c7cc2398fbd9ed1bfc999db04 to your computer and use it in GitHub Desktop.
Satang - Failed Getting listen key
// Hi IT Team
// Thanks a lot for taking this case
// Calling generateListenKey this get 404 not found error
// If I tried https://satangcorp.com/api/v3/userDataStream (no S) I will get 401 Unauthorised error
// I also tried adding TDAX-API but didn't work as well
// There's no difference when I used apiSecret in plase of apiKey
// I made sure 'Read User Data Stream' option is enable for this apiKey
// Would be great if you can share how to do this correctly and how to extend key live since that one has a different security protocol
const axios = require('axios')
exports.generateListenKey = async () => {
return axios.post(`https://satangcorp.com/api/v3/userDataStreams`,{
headers: {
'X-MBX-APIKEY': 'live-08819575b48f4615b68130a6d205be91'
}
})
}
@maxoja
Copy link
Author

maxoja commented Apr 30, 2021

FYI, this snippet is just to communicate with dev. The chat didn’t allow screenshot/file so I sent the link to this gist instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment