I have applied all the necessary checks for different filters error like LOT_SIZE,NOTIONAL,PRICE_FILTER but i keep getting the same error. `
if (size[0].minPrice <= invest) {
console.log("PRICE_FILTER", size[0].minPrice, invest);
// if(size[1].minQty <= quantity && size[1].maxQty >= quantity)
if (size[1].minQty <= quantity) {
console.log("LOT_SIZE", size[1].minQty, quantity);
// if(size[3].minQty <= quantity && size[3].minQty >= quantity)
if (size[3].minQty <= quantity) {
data= await createOrder(dataObj);
console.log("MARKET_LOT_SIZE", size[3].minQty, quantity)
} else {
return sendResponse(false, `MARKET_LOT_SIZE provided quantity should be between ${size[3].minQty}-${size[3].maxQty}!`);
}
} else {
return sendResponse(false, `LOT_SIZE provided quantity should be between ${size[1].minQty}-${size[1].maxQty}!`);
}
} else {
return sendResponse(false, `PRICE_FILTER provided price should be between ${size[0].minPrice}-${size[0].maxPrice}!`);
}
This is my code, coin is passing all the checks but i am getting same error .I will really appreciate any help.Please do provide solutions.