My first system trading application
- Korea investment(한국투자증권) is the only brokerage supporting REST API in Korea.
https://pkg.go.dev/github.com/sunglim/systemtrading
https://hub.docker.com/r/limasdf/systemtrading
> go run main.go -koreainvestment_url=<your korea investment server URL> -koreainvestment_appkey=<your korea invesment app key> \
-koreainvestment_appsecret=<your korea invesment app secret> -koreainvestment_account=<your account> -telegram_chat_id=<telegram chat id> -telegram_token=<telegram token>
/pkg/koreainvestment
is a package to call Korea investment APIs. Some old codes still live in /order/koreainvestment
, but new code should reside in pkg directory.
Ideally, I have a plan to make this package a fully generated code.
A strategy matches to an trading algorithm.
As the name explains, this strategry buy aone stock every day.
More strategry will be introduced..
By default, the logging system writes messages to standard output, and also to telegram as long as telegram configuration is set.
The application requires a telegram bot token and chat ID. See BotFather to get a telegram token.
See go run ./src/main -h
explains how to pass the token and chat id.
http://<ip>:8080/metrics
is exposed.
- Existing system trading applications
-
A moudle to receive current stock price
- It should be pluggable, provide an interface so that any stockbrokerage can be integrated
-
A moudle to buy/sell
-
Strategry
- When to sell, when to buy, when to hold
-
Monitoring
- Provide informations like profits, loss.
-
Easy to simulate