Retrieve Real-Time, Intraday & Historical Market Data via API
The Market Data API provides you with access to stock market data of over 8000 ETFs and stocks. Retrieve historical prices or stream the price development of your favorites in real-time.
Historical Market Data
Retrieve Open-High-Low-Close (OHLC) data, historical quotes and historical trades. Specify the type of data you want to retrieve using query parameters: set a specific time period, retrieve multiple ISINs or set the numbers format that suits you best.
Real-Time Market Data
Stream real-time market data via WebSockets. Receive the latest Quotes and Trades without any delays and integrate them directly into your brokerage use case.
Get started with the lemon.markets Market Data API
Integrate our stock database as well as historical & live market data quickly & easily into your use case via our API.
An extensive documentation covering many edge cases to help you start building. Extend by OpenAPI specs with Swagger if that's your preference.
The streaming of historical and real-time market data is available completely free of charge. We charge the subscription fee based on your trading activity.
The lemon.markets Market Data API endpointsRetrieve the latest prices or use the historical data of the last months. Go directly to the source or simply use our aggregations in candlestick format.
/quotesAccess the latest quotes (prices & volume) or make a request for a period of your choice.
/tradesRetrieve trades of instruments on a tick-per-tick basis for specific time frames.
/ohlcDirectly retrieve aggregations of trades in candlestick format on a per-minute, hourly or daily basis.
Customise the API response to your needs
Define your customised time range
Use query parameters "from" and "to" to define the time range you are interested in
Choose your numbers format
Set query parameter "?decimals=true" to receive your data in decimal format. Not what you need? Set "?decimals=false" for int format.
Define the date format that fits your needs
Set query parameter "?epoch=true" to receive the dates in your market data as UNIX timestamp. Choose "?epoch=false" for ISO string dates.
All about the market data APIFAQ - We hope your questions will be answered here
To stream market data live, you can easily take advantage of our streaming offer. You can find more information in our documentation.
There are different ways to integrate market data into your own trading strategy. On our blog we present different ideas and concepts - get inspired.
With our API you have access to historical (quotes, trades, OHLC) and can stream live market data like real-time quotes. For more details please visit our FAQ.
Currently you can access historical quotes, trades and OHLCs until August 2021. If there is a need for data further back, we will be happy to look into it.
You can choose from a three-tier subscription model. Based on your usage intensity, there is sure to be something for you and your wallet. The paper trading environment will always be available to you free of charge. For more details please visit our pricing page.
Register now and experience the API firsthand. Test your use case within the Paper environment or immediately open a brokerage account with us, start wiring funds to your account, and place your first orders with the Trading API within minutes.