자산 현황 및 자동매매 페이지 제거:
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 11m20s

- `/templates/pages/asset.html`, `/templates/pages/autotrade.html` HTML 템플릿 삭제.
- `/static/js/asset.js`, `/static/js/autotrade.js` 클라이언트 스크립트 제거.
- 관련 함수 및 초기화 로직 삭제 (자산 조회 및 자동매매 기능 비활성화).
This commit is contained in:
hayato5246
2026-04-07 21:43:24 +09:00
parent 5a29d50752
commit 5aeb5f2b80
47 changed files with 279 additions and 6361 deletions

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"log"
"stocksearch/config"
"stocksearch/models"
"strconv"
"strings"
@@ -14,10 +15,18 @@ import (
)
const (
kiwoomWSURL = "wss://api.kiwoom.com:10000/api/dostk/websocket"
writeTimeout = 10 * time.Second // 쓰기 타임아웃
)
// kiwoomWSURL 키움 WS 서버 URL (모의투자 여부에 따라 분기)
func kiwoomWSURL() string {
base := config.App.BaseURL
if strings.Contains(base, "mockapi") {
return "wss://mockapi.kiwoom.com:10000/api/dostk/websocket"
}
return "wss://api.kiwoom.com:10000/api/dostk/websocket"
}
// KiwoomWSClient 키움증권 실시간 WebSocket 클라이언트
type KiwoomWSClient struct {
tokenService *TokenService
@@ -90,7 +99,7 @@ func (k *KiwoomWSClient) Connect() error {
// dial WSS 연결 수립 후 로그인 패킷 전송
func (k *KiwoomWSClient) dial() (*websocket.Conn, error) {
// HTTP 헤더 없이 연결 (키움 WS는 헤더 인증 불필요)
conn, _, err := websocket.DefaultDialer.Dial(kiwoomWSURL, nil)
conn, _, err := websocket.DefaultDialer.Dial(kiwoomWSURL(), nil)
if err != nil {
return nil, err
}