Automated trading on the stock market via API

Develop your automated trading strategy with the lemon.markets Trading API. Built by developers for developers.

Why should you automate your trading strategy ?

Portfolio diversification

Automation allows you to make your trading even more efficient. For example, you can run different strategies in parallel and thus diversify your portfolio.

Reduce emotions

Through automated trading, you avoid making rash and emotional decisions. Instead, you use extensively tested statistical indicators.

Test Strategies

Before you set your strategy live, you can test it extensively beforehand. This will help you to make the strategy even safer and more stable.

Computer are faster

Computers can analyze complex relationships and make decisions more quickly. A decisive advantage in trading.

How does lemon.markets help you automate your trading strategies ?

Detailed documentation

Our easy-to-use API and detailed documentation are a developer's dream. Conveniently use our Postman Workspace to try out all endpoints and make coding more comfortable with our SDK's. See for yourself in usereren Docs.
Easy-to-use API
Detailed and comprehensible documentation
SDK’s

The products you need

Our features make your everyday trading easier. Use our paper environment and historical market data to test your strategies extensively or stream market data live on the pulse of the market and never miss a good trading opportunity again. Learn more on the product page.
Historical market data
Live stream market data
Paper Environment

Active community

Join our +650 developer strong community and find inspiration and support for your projects. On our blog you can discover many exciting projects and helpful resources to get started right away.
650+ strong community of developers
Quick support
Inspirational blog articles, YouTube videos, etc.

Automate your trading strategy in a few simple steps

1. Step
Open a securities account

Open your account with lemon.markets in a few simple steps. After that you get access to your own dashboard and can use our API.

2. Step
Code and test

Create your individual automated trading strategy and test it extensively in our Paper Environment using historical market data.

3. Step
Live Trading Upgrade

Upgrade to Live Trading and open a securities account with our partner, Baader Baader Bank, to use your strategy on the real market.

Get started with a paper trading account

Create a free Paper Trading account in a few seconds and get started with your first project. You will get access to our dashboard and create your first API key.

Build and test your strategy

Start building your own automated trading strategy and test it risk-free with 100.000€ Paper Money. On our blog you will find many projects and resources to get started right away. In addition, you will always find inspiration and support in our community.

Upgrade to Live Trading

If you have tested extensively in Paper Trading, you can upgrade your account to Live Trading. Every private person who is of age, (only) liable to pay taxes in Germany and not politically exposed can open a Live Trading account at lemon.markets quickly and easily.

See how easy it is to use our API

Simple and immediate order execution. Extensive market data. Detailed documentation with many code examples to help you get started. Manage your entire trading experience through an API.

Start in just two minutes
At lemon.markets we want to give you full freedom of action. With just a few API calls you can manage your entire account. Check your account balance, check how much cash to invest you have or simply query your positions directly.
market data
Use lemon.markets to get data for all tradable instruments like stocks or ETFs. In addition, we offer both real-time and historical quotes, open-high-low-close (OHLC) and trades data directly from the exchange!
Place orders via the REST API of lemon.markets
Conveniently place market, limit, stop-market or stop-limit orders with us. Your purchased securities will then be added directly to your positions.
1import requests
2response = requests.get("https://trading.lemon.markets/v1/account/",
3        headers={"Authorization": "Bearer YOUR_TOKEN_HERE"})
4"""
5returns this: {
6  "balance": 5000.00,
7  "cash_to_invest": 5000.00
8}
9"""
10
11params = {"search": "Coinbase", "type": "stock"}
12requests.get("https://data.lemon.markets/v1/instruments/",
13        headers={"Authorization": "Bearer YOUR_TOKEN_HERE"},
14        params=params)
15
16"""
17returns this: [{
18    "isin": "US19260Q1076",
19    "wkn": "A2QP7J",
20    "name": "COINBASE GLB.CL.A -,00001",
21    "title": "COINBASE GLOBAL INC.",
22    "type": "stock",
23    "currency": "EUR",
24    "tradable": true,
25}]
26"""
27
28order_details = {
29  "isin": "US19260Q1076",  # ISIN of coinbase
30  "valid_until": 1624448807,  # timestamp
31  "side" : "buy",
32  "quantity": 2,
33}
34requests.post("https://trading.lemon.markets/v1/orders/",
35        data=order_details,
36        headers={"Authorization": "Bearer YOUR_TOKEN_HERE"})
Start now !

Join lemon.markets

Register now and use the API end-to-end. Test your use case in the paper environment or directly open your securities account to place your first orders with the Live Trading API within minutes.


Need any help?
Ask a question in our CommunityAsk a question in our CommunityGet started with our DocumentationGet started with our DocumentationGet inspired on our BlogGet inspired on our Blog
© lemon.markets 2022Privacy PolicyImprint
Systems are down

As a tied agent under § 3 Sec. 2 WplG on the account and under the liability of DonauCapital Wertpapier GmbH, Passauer Str. 5, 94161 Ruderting (short: DonauCapital), lemon.markets GmbH offers you the receipt and transmission of orders for clients (§ 2 Sec. 2 Nr. 3 WpIG) of financial instruments according to § 3 Sec. 5 WpIG as well as brokerage of accounts.