How to get spot market price of symbol pair?

Hello!I am using python binance lib and. I have a question, maybe somebody can help me.
I am making spot market order

order = client.create_order(
                symbol=pair_symbol,
                side='BUY',
                type='MARKET',
                quoteOrderQty=amount)

and after that i recieve API response where pointed price. For example, BTCUSDT market price is 29721.92000000

{'symbol': 'BTCUSDT', 'orderId': 20926184373, 'orderListId': -1, 'clientOrderId': 'WgSNN3mcim5jPNsqsWtLEg', 'transactTime': 1682535272937, 'price': '0.00000000', 'origQty': '0.00072000', 'executedQty': '0.00072000', 'cummulativeQuoteQty': '21.39978240', 'status': 'FILLED', 'timeInForce': 'GTC', 'type': 'MARKET', 'side': 'BUY', 'workingTime': 1682535272937, 'fills': [{'price': '29721.92000000', 'qty': '0.00072000', 'commission': '0.00000072', 'commissionAsset': 'BTC', 'tradeId': 3095567300}], 'selfTradePreventionMode': 'NONE'}

But if i want get this price BEFORE i make order? Where i can get it?
I tried use first price from Recent Trades List but it have big difference with market price…
Thanks in advance for help

We don’t have knowledge on python binance lib, since it’s not official. Although this is the endpoint to get the latest prices in a symbol → https://binance-docs.github.io/apidocs/spot/en/#symbol-price-ticker