common api_call for get_quote