Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion alpaca_bars_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func barToSnapshot(bar marketdata.Bar) *asset.Snapshot {
High: bar.High,
Low: bar.Low,
Close: bar.Close,
Volume: int64(bar.Volume),
Volume: float64(bar.Volume),
}
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22

require (
github.com/alpacahq/alpaca-trade-api-go/v3 v3.5.0
github.com/cinar/indicator/v2 v2.0.6
github.com/cinar/indicator/v2 v2.1.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghf
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/cinar/indicator/v2 v2.0.6 h1:wtRwadz5UHo1nnw994byImU7xcCbwdpUHYYWwGpXxls=
github.com/cinar/indicator/v2 v2.0.6/go.mod h1:Ts293VYPlwl2QpRdXw+LJmadRmYEmrmkKWdvNGA/xQs=
github.com/cinar/indicator/v2 v2.1.0 h1:vMQMgdFrqQKpPRtrEDuBPuoLd5oaQ93qyYIofXob9j4=
github.com/cinar/indicator/v2 v2.1.0/go.mod h1:Ts293VYPlwl2QpRdXw+LJmadRmYEmrmkKWdvNGA/xQs=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
Expand Down