Last active
April 30, 2021 22:56
-
-
Save maxoja/ca07957c7cc2398fbd9ed1bfc999db04 to your computer and use it in GitHub Desktop.
Satang - Failed Getting listen key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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' | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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