My first system trading application
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.
A moudle to receive current stock price
A moudle to buy/sell
Strategry
Monitoring
Easy to simulate