Get market id from quotes request

Hello,
I understand that to place an order you need to include both the market_id and the contract_id in the request.
From the quotes request, I only get the contract_id though. So if I make a quotes request for multiple market_ids, how can I discern which market_id a contract_id belongs to?

No one?

Hey, I guess the easiest to resolve this way is to call the contracts endpoint to get contracts by a set of market ids and then match that with the response from the quotes endpoint.