I wanna fetch data, and also make a trade using signed endpoints, which requires an additional parameter, HMAC SHA256 signature, to be sent in the queryString or requestBody.
Binance API - Endpoint Security Type info
API-keys are passed into the Rest API via the X-MBX-APIKEY header.
I’m using “crypto-js” (for HMAC SHA256 signature) and “axios.post()” to send queryString.
I came up with some code for placing an order, but it seems that something is not configured quite right.
I uploaded files to GitHub, so if there’s anyone who could help, can check the PAGE and the CODE.
Just one thing to mention, change API and secret key with your own to test it out.