redeem error by API

Hi guys i try to redeam for test , but return me this error {"code":-1002,"msg":"You are not authorized to execute this request."}
but i am sure the API key and SEcrete KEY is correct , how is possible to fix it ?
this is my script

#!/bin/bash
API_KEY=""
APISECRET=""

amount="0.61573818"
# Current timestamp in milliseconds
TIMESTAMP=$(($(date +%s%N) / 1000000))
recv_Window=5000
asset="CAKE001"
# Binance API endpoint
url2="https://api.binance.com/sapi/v1/lending/daily/redeem"

# Concatenate query string
query_string="productId=$asset&amount=$amount&type=FAST&recvWindow=$recv_Window&timestamp=$TIMESTAMP"
echo $recv_window
# Compute signature
signature=$(echo -n "$query_string" | openssl dgst -sha256 -hmac "$APISECRET" | awk '{print $2}')

response=$(curl -X "POST" "$url2?$query_string&signature=$signature" -H "X-MBX-APIKEY: $API_KEY" -H "accept: application/json" -d "")

echo $response

Hi, can you check your API permissions and ensure that you have Enable Spot & Margin Trading permission enabled?

how can modify restriction in API ? i try a link modify restriction but a box remaning gray o_O

i find a solution but i must insert a statics ip o bad