Note: This is not an official lemon.markets bot. Please only use this as a starting point or reference for your own projects.
This Telegram bot is provided by lemon.markets to showcase one of the many use-cases of the API. This bot can be used to place trades on your own lemon.markets
account and gain an overview of your portfolio. The available commands are: /start
, /trade
, /quicktrade
, /portfolio
and /moon
.
If you'd like a step-by-step tutorial on this project, check out our YouTube video here and our blog-post here.
This repository requires the creation of an .env
file with the following variables to communicate with the lemon.markets API
and the Telegram API:
ENV Variable | Explanation |
---|---|
DATA_API_KEY | Your market data API key |
TRADING_API_KEY | Your paper/money trading API key |
MIC | Market Identifier Code of Trading Venue |
BOT_TOKEN | Your Telegram bot token |
There are two lemon.markets API URLs, one for trading and the other for market data. Please refer to the documentation to learn more and find the appropriate URLs.
To connect to the Telegram API, you must obtain an access token by setting up a new bot via @BotFather. Read this guide to find out how.
- Fork the repository
- Create your feature branch (git checkout -b new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin new-feature)
- Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) 2021 Joanne Snel