market data API implementation