sunglim / systemtrading

my first system trading application
MIT License
0 stars 0 forks source link

Read configs from a file #41

Closed sunglim closed 11 months ago

sunglim commented 1 year ago

Motivation:

The configurations are hard-coded. It makes us very difficult to update when the application is running.

The configs are hardcorded as below.

    go order.StrategryBuyEveryDayIfBelowAverage("12:00", []order.StrategryBuyEveryDayIfBelowOrder{
        {
            Code:     krxcode.Code농심홀딩스,
            Quantity: 1,
        },
...

Ideally, the configuration files should be passed as arguments. Also, the configurations should be reloaded if changed.

Technical decisions: