Closed sunglim closed 11 months ago
Order failed:reasonPost "https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/trading/order-cash": EOFpanic: Post "https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/trading/order-cash": EOF goroutine 2249 [running]: github.com/sunglim/systemtrading/pkg/koreainvestment.ApiOrderCash.Call({{0xc0002c5680, 0x6}, 0x1, {{0x7fff4acffeba, 0x8}, {0x7fff4acffec3, 0x2}}, {{0x7fff4acffdaa, 0x24}, {0x7fff4acffdeb, ...}}, ...}) /app/pkg/koreainvestment/api_order_cash.go:99 +0x786 github.com/sunglim/systemtrading/order.orderCash({{0xc0002c5680, 0x6}, {0xc0002c5690, 0xf}, {0xc0002c5689, 0x5}, {0xc0002c56a0, 0xa}, {0xc0002c56b0, 0x6}, ...}, ...) /app/order/strategy_buy_everyday_if_below_average.go:65 +0x558 github.com/sunglim/systemtrading/order.order({0xc000076ab0, 0x6, 0x6}, 0xe54ae0) /app/order/strategy_buy_everyday_if_below_average.go:28 +0x338 reflect.Value.call({0x9102e0?, 0xa22508?, 0x7f59ebe5a5e0?}, {0x9c97c4, 0x4}, {0xc000274000, 0x2, 0x0?}) /usr/local/go/src/reflect/value.go:596 +0xce7 reflect.Value.Call({0x9102e0?, 0xa22508?, 0xc000191bb8?}, {0xc000274000?, 0xc0001664b0?, 0xf0?}) /usr/local/go/src/reflect/value.go:380 +0xb9 github.com/go-co-op/gocron.callJobFuncWithParams({0x9102e0?, 0xa22508?}, {0xc0003e0000, 0x2, 0xc000191c01?}) /go/pkg/mod/github.com/go-co-op/gocron@v1.27.0/gocron.go:106 +0x1c5 github.com/go-co-op/gocron.runJob({{{0x0, 0x0}, {0x0, 0x0}}, {0x9102e0, 0xa22508}, {0xc0003e0000, 0x2, 0x2}, 0x0, ...}) /go/pkg/mod/github.com/go-co-op/gocron@v1.27.0/executor.go:75 +0x65 github.com/go-co-op/gocron.(*executor).runJob(_, {{{0x0, 0x0}, {0x0, 0x0}}, {0x9102e0, 0xa22508}, {0xc0003e0000, 0x2, 0x2}, ...}) /go/pkg/mod/github.com/go-co-op/gocron@v1.27.0/executor.go:160 +0x1b8 github.com/go-co-op/gocron.(*executor).run.func1() /go/pkg/mod/github.com/go-co-op/gocron@v1.27.0/executor.go:224 +0x385 created by github.com/go-co-op/gocron.(*executor).run in goroutine 55 /go/pkg/mod/github.com/go-co-op/gocron@v1.27.0/executor.go:192 +0x19d