How to create an API call to buy BTC for 50 BUSD?

Hi,

I already made an API command to do this, but I’m confused with the “quantity” and “price” parts. I read the documentation, but I have no idea how to set them.
Maybe other parameters are fine. I work on Linux.

The query:

symbol=BTCBUSD&side=BUY&type=LIMIT&timeInForce=GTC&quantity=1&price=0.1&timestamp=$TM

Generate timestamp:
TM=$(( $(date -u +%s) *1000))

Generate signature:

BUY_SIGNATURE=$(echo -n “$BUY_QUERY” | openssl dgst -sha256 -hmac $APISECRET | awk ‘{print $2}’)

The full command:

curl -H “X-MBX-APIKEY: $APIKEY” -X POST ‘https://api.binance.com/api/v3/order’ -d “$BUY_QUERY&signature=$BUY_SIGNATURE”

Thank you!

What do you mean by confused with the “quantity” and “price” parts? What’s the actual problem?