Creating Loan & Shorting Position at same instance

Is there any way to open a short position even if I don’t have that coin in my wallet. Yes, by creating loan amount I hope, but is it possible to create loan at the time of order execution ?
For ex. I’ve to go short on 100 ZEC (under my max loan amount) at some certain price. So if this order gets executed after 3hrs, so my loan gets created at that instance.

yes, that’s available from our margin API by setting sideEffectType=MARGIN_BUY, you will borrow and place order in one request.

https://binance-docs.github.io/apidocs/spot/en/#margin-account-new-order-trade