Compare commits

..
4 Commits
Author SHA1 Message Date
gmp b968856316 ohlc: bump to merged main (exchange timezone, sorted events, dedup)
The 2024 pin predates the timezone/sorting/dedup fixes merged into ohlc
main (PR #1). Rebuilt binary in ~/go/bin.
2026-08-31 21:31:59 -04:00
gmp 85115af7c4 Change frequency to 10 seconds. 2025-01-26 11:28:48 -05:00
gmp 94d448e905 Merge branch 'main' of https://git.wow.st/gmp/goget 2025-01-26 11:27:36 -05:00
gmp 4ab2371198 Tweak timing and retry on copy error. 2025-01-26 11:25:11 -05:00
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -2,4 +2,4 @@ module git.wow.st/gmp/goget
go 1.23.0 go 1.23.0
require git.wow.st/gmp/ohlc v0.0.0-20241115230120-714064615eb3 // indirect require git.wow.st/gmp/ohlc v0.0.0-20260831232849-584ec8753c65 // indirect
+2
View File
@@ -2,3 +2,5 @@ git.wow.st/gmp/ohlc v0.0.0-20241115023606-83f41a06596c h1:etBdVfh2E4k00IzRBMuHsG
git.wow.st/gmp/ohlc v0.0.0-20241115023606-83f41a06596c/go.mod h1:QSSqMCu9AFoYtfqA9Hbfpxy3mp5MT/d4fk0AzYnuoo8= git.wow.st/gmp/ohlc v0.0.0-20241115023606-83f41a06596c/go.mod h1:QSSqMCu9AFoYtfqA9Hbfpxy3mp5MT/d4fk0AzYnuoo8=
git.wow.st/gmp/ohlc v0.0.0-20241115230120-714064615eb3 h1:HDrgOSn1k2EzP0XIZbToUvwW3GXmZSnddq+/Zv2R4Mc= git.wow.st/gmp/ohlc v0.0.0-20241115230120-714064615eb3 h1:HDrgOSn1k2EzP0XIZbToUvwW3GXmZSnddq+/Zv2R4Mc=
git.wow.st/gmp/ohlc v0.0.0-20241115230120-714064615eb3/go.mod h1:QSSqMCu9AFoYtfqA9Hbfpxy3mp5MT/d4fk0AzYnuoo8= git.wow.st/gmp/ohlc v0.0.0-20241115230120-714064615eb3/go.mod h1:QSSqMCu9AFoYtfqA9Hbfpxy3mp5MT/d4fk0AzYnuoo8=
git.wow.st/gmp/ohlc v0.0.0-20260831232849-584ec8753c65 h1:lyn45usVujB4TtzVRO2m7WxXhZ0Uo4RdUW7bJX4uypk=
git.wow.st/gmp/ohlc v0.0.0-20260831232849-584ec8753c65/go.mod h1:QSSqMCu9AFoYtfqA9Hbfpxy3mp5MT/d4fk0AzYnuoo8=
+4 -3
View File
@@ -17,7 +17,7 @@ var (
clk chan bool clk chan bool
wg sync.WaitGroup wg sync.WaitGroup
freq = time.Second * 15 freq = time.Second * 10
throttle bool throttle bool
errs map[string]int errs map[string]int
mu sync.Mutex mu sync.Mutex
@@ -61,8 +61,9 @@ func get_(symbol string) (error) {
_, err = io.Copy(out, resp.Body) _, err = io.Copy(out, resp.Body)
resp.Body.Close() resp.Body.Close()
if err != nil { if err != nil {
fmt.Println("Error copying to file.") fmt.Printf("%s: Error copying to file.", symbol)
os.Exit(-1) err_(symbol,1)
return fmt.Errorf("%s", resp.Status)
} }
out.WriteString("\n") out.WriteString("\n")
out.Close() out.Close()