Hello Support,
As mentioned in the subject, I have created an application to place open orders and it was working fine, but today I encountered the error
"code: -2014, msg: 'API-key format invalid.'"
push an order:
let queryString = Object.keys(payload)
.map((key) => `${key}=${payload[key]}`)
.join('&');
let signature = crypto
.createHmac('sha256', secretKey)
.update(queryString)
.digest('hex');
payload.signature = signature;
const endpoint = 'https://fapi.binance.com/fapi/v1/order';
const headers = { 'X-MBX-APIKEY': apiKey };
const response = await axios.post(endpoint, null, { params: payload, headers });
I checked the API of the account and did not find any changes from change log update; and the API Key still exists.
Why am I encountering this issue when nothing has changed?!
Looking forward to your response, thank you!